Why do plants produce carbon dioxide as well as oxygen?
I assume you are familiar with the equatin of photosynthesis – carbon dioxide is one of the reactants, and oxygen is one of the products. Hence plants produce oxygen in photosynthesis. The energy obtained by this process is used in cellular respiration, the equation being the reverse of that of photosynthesis – hence now carbon dioxide is the product.