Massive bodies like planets can warp and distort spacetime, and gravity, which we experience as an attractive force, is in fact a consequence of this warping. Just as a pool ball placed on a trampoline will create a dip that a nearby marble will roll into, so does a massive body like a planet distort space, causing nearby objects to be attracted to it.

BUT THE MARBLE ROLLED ON THE CURVED TRAMPOLINE NOT BECAUSE OF ITS CURVATURE BUT GRAVITY WORKING UNDER IT.