Why does burning wood and burning fossil fuels produce similar pollutants?

Burning fossil fuels and burning wood produce similar pollutants because wood and fossil fuels are both consist of hydrogen and carbon. Carbon dioxide is produced when burning wood and fossil fuel.