Answer:
there's bacteria. developed bacteria that lives on energy given off by the sun and carbon dioxide in the water hence production oxygen as a waste product
and also plants take in carbon dioxide exhaled by people and give it off as oxygen as a waste product