Comment by izacus
The game theory here says that such a company will be outcompeted and killed by a company which doesn't spend money+time on retention and training but instead invests that money in poaching.
What you say only works if everyone is doing it. But if you're spending resources on juniors and raises, you can easily be outcompeted and outpoached by companies using that saved money to poach your best employees.
Its the tragedy of the commons. These companies will think they are very smart for doing this, but theyll just foster a culture where there are no competent employees once the current seniors retire