Hi there.
Think to the last time you exercised - you were probably breathing hard. Lots of exhaling, yeah?
When we exhale, we produce carbon dioxide. During exercise, you are exhaling out much more, which produces CO2.
This was a fairly simple answer. If you were looking for something more detailed, try expanding upon the info I gave you.
Hope this helped :)