Plants consume CO2 during the photosynthetic process and release oxygen. Animals consume oxygen during the respiratory process and release CO2. This is the definition of a symbiotic relationship. It is by design not coincidence.