when earth first formed it was likely composed of hydrogen, helium and other gases that contained hydrogen but it didnt last for very long because the solar wind from the sun blew it away solar wind is stream of charged particles such as electrons, protons, and aloha particles. We now have a magnatic field surrounding earth that sheilds us from the solar wind