Judging by the OPs comments, the employer could easily retain them if they offered them remote and a bit more comp.
It’s on the employer to retain talent.