The retention of light gases like helium and hydrogen in a planetary atmosphere is indeed influenced by the planet's gravity and the thermal velocities of the gas molecules. Here’s a breakdown of how early celestial bodies might have retained these gases despite the challenges:
1. Formation in Cold Environments
During the early stages of the solar system, the protoplanetary disk was very cold. In such environments, the thermal velocities of gas molecules are lower. This means that hydrogen and helium atoms would move more slowly and be less likely to escape the gravitational pull of a forming planet or moon.
2. Accretion of Solids and Gases
Planets form through the accretion of solid particles that eventually grow into planetesimals. In the outer solar system, where it’s colder, these planetesimals can trap ices and gases, including hydrogen and helium, within their structure. As these planetesimals collide and merge, they can form larger bodies with enough gravity to retain an atmosphere.
3. Gravitational Capture
In the early solar system, there was a lot more material around, including gas. Larger protoplanets could gravitationally capture surrounding gas directly from the solar nebula. This process is more efficient in the outer regions of the solar system, where the solar nebula was denser and cooler.
4. Giant Planets
The gas giants (Jupiter, Saturn, Uranus, and Neptune) formed in the outer solar system where temperatures were low enough to allow them to capture and retain significant amounts of hydrogen and helium. Their large masses provided strong gravitational fields that could hold onto these light gases.
5. Atmospheric Escape Over Time
While Earth cannot retain hydrogen and helium over geological timescales, it doesn’t mean it never had them. In the early stages of Earth's formation, it might have had a primordial atmosphere rich in hydrogen and helium. However, due to Earth's relatively weak gravity compared to the gas giants and the higher temperatures close to the Sun, these light gases eventually escaped into space.
6. Secondary Atmosphere
Earth’s current atmosphere is a "secondary atmosphere," formed from volcanic outgassing and cometary impacts after the primordial atmosphere was lost. This secondary atmosphere is composed mainly of heavier molecules like nitrogen, carbon dioxide, and water vapor, which are less prone to escape.
Summary
Early celestial bodies, especially those forming in the colder outer regions of the solar system, could retain hydrogen and helium due to lower temperatures and higher densities of the solar nebula. In contrast, closer to the Sun, where it was warmer, only larger bodies like Jupiter and Saturn could retain these light gases effectively. Earth, being smaller and closer to the Sun, lost its primordial hydrogen and helium atmosphere over time.