It is because both of them are attracted towards earth where the heavier body gravity field influence is more in comparision to small. For eg; there are two magnet with less power in besides of huge power or magnetic influence then both of the less power magnet are attracted towards the huge one rather than attracting themselves.
Hope its helps u!