The primary atmosphere was lost on the terrestrial planets due to a combination of surface temperature, mass of the atoms and escape velocity of the planet.
When it comes to terrestrial planets, the primary gaseous envelope was lost due to factors such as surface temperature, atomic composition, and the planet's ability to expel gases.