Why are there sunspots?
The sun is a ball of incandescent gas. That gas moves about, flowing up and down as well as across the sun’s surface. This movement keeps the sun’s temperature roughly uniform but there are occasionally imperfections; regions of the sun’s surface that get out of balance with the rest of the sun. When you cook a thick soup on the stove, there will also be regions of the surface that are cooler than others.