Here's why:
* Gravity is a fundamental force: It's one of the four fundamental forces in the universe, along with electromagnetism, the strong nuclear force, and the weak nuclear force.
* Mass creates gravity: The more mass an object has, the stronger its gravitational pull. Planets, being massive objects, have a significant gravitational force.
* Gravity holds planets in orbit: The Sun's massive gravity holds all the planets in our solar system in their orbits.
So, while Earth is known for its gravity, all the planets in our solar system, from Mercury to Neptune, have gravity.