How did Earth get its gravity?

All objects with a mass attract one another, whether they are tiny particles, humans or planets. The irresistible force that draws them towards each other because of their mass is called gravity. But it is a very weak force: the attractive gravitational force between you and your friend when you are standing next to each other is one billion times smaller than that needed for you to lift your friend. As a consequence, you don't feel this force. But as Earth is much more massive than your friend, you do feel its gravitational attraction. This is what holds you to the ground makes objects fall down and also keeps the Moon revolving around us. Earth actually formed from many smaller asteroids, dust and gas particles that attracted each other gravitationally over millions of years until they finally grouped together to form our planet. Earth's gravity results from this accumulated mass.

Picture Credit : Google