Almost all of it is, or at least originates, from racism, at least with schools.
When public schools allowed racial integration , school choice became a mechanism for racists to pull their kids from mixed schools.
It grew into things like charter schools that are private, often religious, schools that get public funding and maintain segregation.