But it's not inevitable that families move to suburbs either. Commenter is partly perpetuating a 1960s era "white flight" kind of stereotype, where cities are said to be terrible for families. I happen to have two kids in SF.
Additionally, a lot of what drives people out of SF specifically is the expense.