That depends on the country. In the US where everything is tied to stock options and employees will jump ship if they get 50 cents an hour more next door, that may be the case. In Aus/NZ you don't have that kill-yourself-for-your-stock-options-and-then-leave culture, if you're not on a barely-subsistence wage where you don't have any choice then people will look at job satisfaction, ease of travel to/from work, and so on alongside what they get paid. I know several guys who have turned down jobs that paid five-figure amounts (this may be a two-figure amount in the US) more than they were currently earning because they were quite happy with their current work environment. Good work environment, laid-back management, the company looked after you (rec room, pool table, beer fridge, after-work gaming, being able to tell the mgt that something wouldn't work and they'd listen to you, etc), not because they saw it as a leash but because they believed in looking after their employees. Some of those guys, and their coworkers, have been at the same company for 20-30 years.
In AUS/NZ you're not going to earn even close to the same amount as you would in the US. Every time I've changed jobs, it was for an extra 100k+ per year. The rec room/pool table can't compete with that.
My current manager has been with the company for almost 20 years. He doesn't feel the need to leave because his stock options have made him a multimillionaire. The company doesn't care about him or me, but we're both happy to stay because we don't need them to. We just need them to pay us.