Well-known examples in the U.S. include the use of legal covenants, red lining, Jim Crow laws, and sometimes blatant intimidation to shape who can own which property where. Such changes persist for decades because of the illiquidity of property in general and the compounding effect of wealth discrepancies.
So “outside their communities” is not a neutral, or purely geographic concept. Communities don’t just happen, they are intentionally constructed.
U.S. governments, in contrast, are ostensibly bound by the republican concept generally and the 14th Amendment specifically, to provide protection and service equally. Even if the citizens in question don’t fit the preferred local definition of “who we want to help.”
Edit add: I’m posting this because I think it helps clarify why some folks want government programs to exist to address social problems, as opposed to just counting on voluntary aid to solve it all.
I don’t want to leave the impression that I think government programs are perfect or without flaws. I actually agree with the comments above that point out how means-tested programs can create incentives to “stand pat” and not try for incremental improvements. It’s policy problem that is well known but hard to fix.