For racist reasons, yes, but also because home prices have become a proxy filter for schools (filtering for kids whose parents are able and willing to pay inflated prices to send their kids to school with other kids whose parents are able and willing to pay inflated housing prices—it's a feedback loop).
The premium's a good 20-25% around these parts for safe-neighborhood-good-schools versus safe-neighborhood-mediocre-schools, so not nothing, and the entirety of many home buyers' equity early in their mortgage. Harder to compare with neighborhoods where the schools are outright bad since the houses there are usually in much worse shape and in high-crime areas, but one must assume the effect would be far stronger still, if one could find an all-else-being-equal comparison.
Still worth doing? Maybe, but if you just tell those middle and upper-middle class folks (actually rich people unaffected, as usual) to screw off and eat a loss you're gonna have some difficulty. And that's before racism even enters the picture, which of course it would.