Water is a necessary quality that we need to survive, Water come to earth by meteorites. You see meteorites bombarded earth multiple times, the meteorites carried water with them, Scientist compared the water on meteorites with the water on Earth and found out that it matches! Even now life cannot be supported on Earth because we don't have oxygen, Yet!
Earth started to gain land and now life started to develop, Cyanobacteria and prokaryotes were the first form of life. In the process of photosynthesis, they breathe in carbon dioxide and breathe out oxygen. Then from single celled organisms, life evolved to different organisms, for example fishes.
During these changes, the atmosphere changed greatly. The atmosphere went from having hydrogen and Helium to Nitrogen and Oxygen. Our atmosphere has saved us multiple times from solar wind and radiation, and I think we should appreciate it more.
That is the Earth's History, the journey from nothing by lava to a world where there are variety of species who live happily.