Where did Earth's early atmosphere come from?

It came from very simple organisms that produced oxygen. These organisms came to this planet from outer space by asteroids.