Why is most of the carbon dioxide produced by green plants not excreted as metabolic waste (given off because it is not needed)?

Why is most of the carbon dioxide produced by green plants not excreted as metabolic waste given off because it is not needed class=