Why is Earth's current atmosphere made up mostly of nitrogen and oxygen?

AEarth is eroding.
BEarth is warming up.
CEarth is continuing to cool.
DEarth has living things on the surface.