Sadly this is the state of capitalism, we are currently in. Not everything should be done for profitability in the name of capitalism.
There should be some legal guarantees to a citizen by the state and not leaving them homeless, hungry, uneducated, ill are quite basic.