I think the mass of the planets is not the only factor for the presence or absence of lighter elements on the planets. It also depends on the surface temperature of the planet. Higher the temperature higher the velocity of the molecules and hence most likely to escape.
In other words closer the planet is to the sun thinner the atmosphere due higher surface temperatures. Hence if the Jupiter happens to be one of the inner planets it would not have probably held that much Hydrogen.