Much of the carbon in the peat deposits produced by coal forests came from photosynthetic splitting of existing carbon dioxide, which released the accompanying split-off oxygen into the atmosphere.
This process may have greatly increased the oxygen level, possibly as high as about 35%, making the air more easily breathable by animals with inefficient respiratory systems, as indicated by the size of Meganeura compared to modern dragonflies.