> People rightfully don't want to invest in areas deemed unsafe, where those investments would be at risk.
That's exactly the rationale behind redlining, food deserts, infrastructure funding (especially schools) and other kinds of systemic racism. I suggest you read up on what that term means. It does not mean that everyone participating in the system is racist. It means that our institutions and economy themselves perpetuate racial injustice even without further racist intent. Framing this entirely in terms of "rational" choices by those who flee, as if those who stay don't exist or don't matter, is perpetuating a false narrative. So, again, why?