The answer is; Dead animals are buried and form fossil fuels, which produce carbon dioxide when burned.
When animals and plants are fossilized and buried under sediments, the higher pressure and temperatures turns them to oil, over time, that is mined and combusted for energy by humans. This plays a significant role in the carbon cycle.