Why does the Moon have Phases?

The moon rotates around the Earth as the Earth rotates around the sun. Because of this the moon is often partially in shadow. These look like phases to the people here on Earth because we are limited to our perception. The moon doesn’t actually change, part of it is just in shadow.