In the 2000s it was seen as very fashionable to job hop frequently, but it was a biased impression that was assumed to be nationwide while it was only really common in SV with the hugely lucrative signing contracts folks like Google, Meta et. all were handing out.
Again, the company has the control to avoid this.
I've worked at small companies that had revenue per employee of under $150,000.
The NYT has a revenue per employee of $470k ( https://www.wolframalpha.com/input?i=New+York+Times+revenue+... ) ... and a profit per employee of $50k ( https://www.wolframalpha.com/input?i=New+York+Times+profit+p... ).
https://www.levels.fyi/jobs/company/the-new-york-times-compa...
If an employee there got an offer in Big Tech, they're going to make more.
Until you hit Big Tech or companies trying to compete with them for talent, you can always find an employer that will pay more than your current one.
Critically: While this is the common perception, it is generally un-true.
Just look at how often you get it as reply when you tell people complaining about how it's "impossible to find staff" to hire juniors.
Even in the situations where it is true, the effect of hiring seniors and refusing to hire juniors (thus pushing them into other fields) creates the shortage of seniors that makes it un-true again.
There's just a trend of employers having hard numbers on their staffing expenses, but barely if at all accounting for hiring costs and opportunity costs.
Many simply get it in their head that a senior costs $X/year, and therefore utterly refuse to pay a junior $X/year when they had to spend a flat amount $Y on training them up. Even when the real cost per hire for the senior is vastly bigger than $Y.
Before the post-covid/AI layoffs, tech firms throwing away hundreds of thousands of dollars and years chasing seniors instead of just training up a junior was a common thing. So much so that it's a notable contributor to the overworking and burnout problems.
And it's still everywhere in the blue-collar world.