Their goal is to get employees who get comfortable and will stick around for that 3% raise. Hiring someone new - even at a premium - gives them another shot at getting an employee who won’t demand a big raise later.
As far as they’re concerned, someone who demands a 20% raise today will demand a 20% raise again the same time next year.