Why would teachers, fireman, policeman, and any other government workers leave California? They have a cushy pension there after working a very short time. That is a big part of what is bankrupting the state.
A pension doesn’t put a roof over your head while you are working toward that pension.