Because it’s always been about power and ego. I’m sure there’s an element of “we can get people to quit without having layoffs or having to compensate them”, but the overwhelming reason for mandatory RTO is power and ego tripping.
If it were ever about productivity it would not have been universal and it would not have been mandatory.