Of course each situation can be unique. I wouldn’t recommend staying at any place that overworks employees or unfairly compensates them.
I am referring to tech folks arbitrarily switching jobs JUST for a pay increase, every year or two years. What’s left behind many cases is in maintainable code where people shrug it off as “someone else’s problem.”