But that's impossible in capitalism, even if they had infinite money, because there will be someone who will rather make themselves wealthier at the expense of people not having a home and water. Their goal might be "let's give everyone a home and water", but they cannot fulfill that goal because of greed and desire for personal gain at the expense of others that's in-built into the system. There's no such thing as "good capitalists" because the system itself does not allow those kinds of capitalists to exist. If one person passes on the opportunity to further enrich themselves, someone else will take that opportunity.
If anything, they're to blame for the deprivation, waste, and pollution of freshwater in many regions. Even just in the imperial core- the US- there are countless examples of this, not to mention the well-documented, inhumane artificial droughts and water monopolization imposed on northern Mexico by a series of American dams and canals.