Capitalism is based on freedom. You can use that freedom to do something good or something bad. The only other alternative is the government forcing you to do something good. And we haven't see that work to well throughout history. So, capitalism, doesn't guarantee people will do the right thing, but it gives them the chance to do the right thing. That's the only thing we've seen that works.
Did anyone read Adam Smith? He is talking about the necessity to act with morality within capitalism.
I don’t even like the word “capitalism” - I believe the term was invented by Marx to describe his manufactured fantasy-religion.
How about just the “rule of law” and “protection of property rights?”