Digestion breaks things down for energy which means producing CO2. You can simplify organic chemistry on these scales as spending energy to store carbon or gaining energy to release it.
In some situations you can get net carbon storage which is how we got fossil fuels in the first place, but this is really slow. On the order of 1 Billionth the total fossil fuels stored per year.