I don't see why we can't provide everyone free food and shelter and also outlaw for profit companies.
Don't confuse nonprofits with non payment. People who do labour for nonprofits can still earn a million dollars a year in salary.
The difference is that nonprofits cannot give their profits to capitalists who do no labour for the org