As being native from Earth's formation - it's actually something we in Solar system astronomy and planet formation are very familiar with.
If you look into the theories of the Earth's early atmosphere, you'll find it is thought to have been primarily CO2 and methane.