Fact 1: the mass of a planet causes the pull of gravity on that planet. 
Fact 2: Gravity is the pulling force that holds objects to the surface of a planet.
The mass of a planet causes the pulling force that holds objects to its surface.