Let's pretend you have 60,000 Software Engineers/Architects/Consultants, 10,000 Hardware Engineers, 20,000 junior-to-mid-level Managers at Amazon. Does Amazon really need to keep burning cash to pay rent on 100-120 offices to house ALL 90,000 of those employees (which many offices aren't equipped to do) especially if they were barely in those offices for the past 2-3 years? What is SO critical that those employees fail to do remotely? Riffing? Whiteboarding? Please! There are apps for that. Same thing for physical stores - massive burning of cash when there are already online stores.
Forcing across the board employee departures (through RTO) and 'reactive' layoffs (to cover up for your planning mistakes) will reduce expenses short-term, however it will also introduce significant side effects: knowledge gaps, impaired productivity, need for org changes, which, at the least, will produce more expenses, lost time, lack of engagement. Dumping stale property, physical stores, 'obsolete' business units achieves expense reduction without those side effects.
Jassy, why shoot yourself in the foot to save a few dollars? You're doing it all wrong. Microsoft was smart - they closed their physical stores. So can you!