Because you're conflating capitalism and greed. Capitalism doesn't mean "do anything for money". It means "as much as possible, people get to decide among themselves how to allocate their money and time". Some of them will invest in anything, just as people in non-capitalist countries. Most will only invest in certain things.
In the abstract, perhaps not. The way it exists in the US, though, it means exactly that.
That is a missed opportunity
* Capitalism: A system where who owns resources matters more tan who needs them is a morally bankrupt system. A system where starvation and homelessness is an acceptable outcome
* Greed. Greed is bad for everybody. Concentrates scarce resources where they are not needed, that too is moral bankruptcy
As for greed, I have yet to meet a person more greedy than the ones claiming to know where to direct those scarce resources they did not create, if only we’d give them the power to do so. Such high morals too, unlike those "immoral capitalists" who built businesses, jobs, countless goods and services to only enslave us and enrich themselves, of course.
Edit: Quoted from memory of https://en.wikipedia.org/wiki/Wall_Street_(1987_film)