Bigger objects have more gravitational pull. Bigger, meaning the size and mass. The closer you are to the object, the stronger the pull is. The earth is much bigger, and has a bigger mass than the moon, meaning that the moon is able to orbit around the earth. You are closer to the earth, so you dont randomly get pulled towards thw moon, because earts gravitational pull is stronger than the moons.