Answer :
because moon is in the outer space and gravitational force will not work in space.
moon is in outer space and it doez not get influenced by earth's gravity