There's no rule that says that rich cities will continue to have bad schools. To take one counter example, there are plenty of well-off parents in NYC who send their kids to public schools because New York has built a number of public schools that are good (not enough, to be fair, but enough that there are plenty of families here). The same could happen in San Francisco.