In the US, society does not provide homes. Nor does it provide health care. Nor does it provide access to higher education. Nor does it provide a safety net.
The US certainly does provide homes (HUD [0]) and health care (Medicaid/medicare) and higher education (state university system).
I think there’s a fair argument about the quality of the safety net, but the US does at least spend a lot of money on the basic needs you just called out. They are typically for the poor, disabled, and/or elderly.