The mass of a planet has consequences for its structure by having a large mass, especially while it is in the hand of process of formation.
If the protoplanet grows by accretion to more than about , its gravity become large enough to retain hydrogen in its atmosphere.