Compensating competitively might stop somebody from leaving for another job, but it won’t stop them from keeling over dead from a heart attack or getting hit by a car.
You need to plan in advance for people leaving, not just assume they will be there forever.
Or moving, or just wanting a different job. Money helps, but it doesn't solve everything.