Fact 1: the mass of a planet causes the pull of gravity on that planet. 
Fact 2: Mass, the amount of matter in an object, is measured in grams.
the amount of matter of a planet causes the pull of gravity on that planet.