When I’ve been made a counteroffer I sometimes try to explain that if it had been in my annual raise anyway we wouldn’t even need to have had this conversation. But managers are completely deaf to that message. That they happily pay all the costs of replacing someone, recruitment fees, lost productivity while the new worker gets up to speed, loss of institutional knowledge, etc, shows that management incentives are poorly designed.