Yes, I know the answer is to keep them at market wages and don’t fall into the salary compression trap.
But often that isn’t under your control as a hiring manager. HR won’t give you a budget for raises. But will give you the budget to hire at market rates.