The great migration to the suburbs happened right after schools were desegregated in the US.
White Americans moved to the suburbs to avoid their children from attending school with black children. Milliken v. Bradley was the last nail in the coffin.
The return to cities has coincided with white people having less children and children at older ages along with less racist views.