There is no explanation of the why of gravity currently. The current most accepted theory is that what we call gravity is a curvature of something we call spacetime. And that spacetime is a combination of the 3 dimensions of space and 1 dimension of time. And we don’t know why there are only 3 spatial dimensions and why, so far as we know, everything moves in one direction in the direction of time.
These theories are an explanation of the relationship between these properties of this universe but do not themselves explain why such a relationship should or must exist.
Latest Answers