I think there are a lot of reasons, and forced attrition is definitely something they see as a benefit. However, I do genuinely think that a lot of them truly believe that working together in an office, face-to-face, is important. RTO is not just a cold calculation, but also reflective of their moral values towards work.
Whether those values actually lead to a better company is the part that, I feel, continues to lack evidence.