Fact 1: the mass of an object causes the gravitational force exerted by that object. 
Fact 2: Gravity is the force that keeps the earth in orbit about our sun.
the mass of the sun causes its gravity on Earth.