Because the Moon rotates on its axis at the same rate that the Moon orbits the Earth, a situation known as synchronous rotation or tidal locking. The Moon is directly illuminated by the Sun, and the cyclically varying viewing conditions cause the lunar phases.
Hope this helps :)