Answer: well, i'm pretty the mass part came down to how well the atoms all bonded with each other after they were scattered into space after a supernova explosion.
Explanation:
and to be honest... i'm not sure about the gravitational explanation. i assumed that gravitational acceleration depended on an individual object's mass/weight...