This statement is divorced from the reality of the situation and, frankly, sounds like it comes from a position of privilege. Most job markets are not like the software developer job market where we can just leave and expect to find gainful employment with better pay and better opportunities within a couple of weeks.
The vast majority of people have to work in order to leave and for the same majority leaving employment is not easy and frequently not an option because they risk being unemployed for long periods of time. Or when they do leave the new place is even worse.