The moon is spherical in shape because it is a rocky body that is held together by its gravity. As the moon formed, the material that was drawn together by its gravity settled into the lowest energy state, which is a spherical shape. This is the same reason that planets and other celestial bodies are spherical in shape.