Companies who do a great job retaining their employees are ones that (a) hire folks who are aligned with their values, and (b) provide the space and support for their people to grow.
Those might sound vague, but it's because they're different for every company.