The early atmosphere of the earth would consist of gases like nitrogen and carbon dioxide and about 2.5 billion years ago oxygen started to form and some of these gases would have been expelled by volcanoes and also the atmosphere would stay close to the surface of the earth due to gravity that held it there.