Plants use carbon to live, just like humans use oxygen. It's a virtuous cycle sine humans breathe oxygen and expel carbon, and plants "breathe" carbon and expel oxygen.
If plants weren't there to "breathe" the carbon, it would just sit in the world, and build up in the atmosphere.