A lot of carbon was also captured during the aptly-named Carboniferous Period 360-300 million years ago. Woody plants had just evolved, but microbes that could break them down had not. Thus, coal. An earlier drop in sea levels also caused carbonate (as in limestone, dolomite, and iron ores) to precipitate out. The combination of these effects pushed oxygen levels about 50% above present, allowing very large animals to evolve.
Does this mean we’ll never have coal again?
Interestingly, this has happened once before. There's a "coal gap" from about 250-230 million years ago during which little-to-no coal was formed in most places. I'm not sure if anyone is sure why; this is right at the time of the P-Tr extinction, so a lot was happening. One theory is that the ligninaceous plants went extinct or other conditions were much less conductive to coal formation.
(FYI: Not a paleontologist or anything like--just a scientist who liked dinos as a kid and remembered some keywords!)
The resulting glaciation extended across the entire planet, was kilometers deep, and lasted 100s of millions of years.
All because blue-green algae.
I assume it's something to do with: https://en.wikipedia.org/wiki/Limestone