This is because the Earth is a sphere, and the shadow it casts is a projection of its shape onto the moon. While the shape of the Earth's shadow isn't perfectly circular due to the moon's slightly elliptical orbit, it's close enough to be considered a circle for practical purposes.