Heat and pressure deep inside the earth, transforming carbon into fossil fuels, that bubble to the surface.
A cycle helped along with radiation from our Sun
Good for you.