The Earth’s original atmosphere contained poisonous gases. The lack of oxygen meant that no animals could survive on the Earth. The earliest plants or plant-like bacteria began the process of photosynthesis, which releases oxygen as a waste product. This gas gradually built up in the atmosphere as the plant life spread, making it possible for oxygen-dependent animals to evolve.
Picture credit: google