While compensation is a major challenge, organizational leaders can address many other factors for why people leave a job.
https://www.mckinsey.com/business-functions/people-and-organizational-performance/our-insights/the-great-attrition-is-making-hiring-harder-are-you-searching-the-right-talent-pools