Trees contain carbon. Burn trees, and they release carbon. New trees end up growing in the ash after it falls and re-capturing carbon. It's a natural, cyclic process.
The problem isn't that humans release carbon or other pollutants (burning trees, coal, oil, etc), it's the scale we do it at, and that we don't automatically re-capture it without doing extra work like planting more trees.