They happen because of a celestial coincidence: although the Sun's diameter is 400 times greater than the Moon's, it is also 400 times farther away, so it appears the same size as the Moon in the sky.