Companies have been relentlessly thinking about how to automate and offshore positions, regardless of the broader economic trends and definitely regardless of your physical work location, for decades now. It isn't "RTO and avoid getting laid off", it's "RTO and get laid off anyway".