Plants utilize the carbon dioxide present in the atmosphere for the process of photosynthesis. In return they release oxygen in the atmosphere.
Oxygen is inhaled by humans and animals and in turn, carbon dioxide is exhaled.
In this way plants and animals help each other in exchange of gases in the atmosphere.