That’s the cartoon version of capitalism just like how “socialism is when the government does something” is the cartoon version of socialism. Capitalism just means that the means of production in a society are owned and controlled by private owners instead of by workers or the government as a proxy for workers. It says nothing about whether people are compelled to be greedy or anti-sharing or something.