It didn't use to be that way, which is what OP was trying to get at. Companies used to reward loyalty with bonuses that scaled by tenure, and tried to retain workforces that they spent considerable resources on training, even through lean times.
Yeah the main issue I see now is that the only way to get more money is to be promoted into usually management. That causes everyone wanting to be mangers even though a lot of engineers should not be. However, they refuse to pay a senior engineer who runs circles around everyone more because they are at the top of the pay band. I would be perfectly fine staying at the same job with no promotion if it meant I got yearly raises/refreshers that outpaced inflation. In reality you have to job hop or get promoted to get a meaningful raise.
It didn't use to be that way, which is what OP was trying to get at. Companies used to reward loyalty with bonuses that scaled by tenure, and tried to retain workforces that they spent considerable resources on training, even through lean times.