How come carbon is organic and carbon dioxide is inorganic?

I read that carbon is an organic element, and online I saw that anything with an organic compound is organic, so why is carbon dioxide considered an inorganic compound?
2 answers 2