This is because the gravitational force is inversely proportional to the square of the distance between the objects.
This means that:
* If the distance is halved, the force becomes four times stronger.
* If the distance is tripled, the force becomes nine times weaker.
This relationship is described by Newton's Law of Universal Gravitation:
F = G * (m1 * m2) / r^2
Where:
* F is the gravitational force
* G is the gravitational constant
* m1 and m2 are the masses of the two objects
* r is the distance between the centers of the two objects
So, as the distance between the objects decreases (r gets smaller), the force (F) gets larger.