This is because the force of gravity is inversely proportional to the square of the distance between the objects. This means that if you double the distance, the force of gravity becomes four times weaker. If you triple the distance, the force becomes nine times weaker, and so on.
Here's a simple explanation:
* Imagine you have two magnets. When they are close together, their attraction is strong.
* As you move them further apart, the attraction weakens.
* Gravity works similarly. The farther apart two objects are, the weaker their gravitational pull on each other.
This is why we feel the pull of Earth's gravity strongly on the surface but much weaker when we are in space.