This is because gravitational force is directly proportional to the mass of an object. Greater the mass, greater will be the gravitational force exerted by it and thus, more will be our weight. As the moon has lesser mass than the earth, it has a weaker gravitational pull and hence, we weigh less on the moon.