Here's why:
* Photosynthesis is the process by which plants use light energy to convert carbon dioxide and water into glucose (sugar) and oxygen. Carbon dioxide provides the carbon atoms that are used to build glucose molecules.
* Oxygen (O2) is a byproduct of photosynthesis, not a requirement.
Let me know if you have any other questions!