These situations are also handled by government in many northern European countries. (unemployment insurance, government housing, social work, free school, free medicare)
E.g., 20% of Swedes live in Stockholm, so a government-run hospital or food bank there would be accessible to a larger share of Swedes than a similar institution in NYC or LA.