Listened to a great podcast about layoffs yesterday ( https://hbr.org/podcast/2023/02/why-many-companies-get-layof... ) The takeaway is that layoffs are extremely trust destroying for employees NOT laid off, and in the end not clear they're a financial net positive. Both with direct and indirect costs (lack of engagement from employees, etc).
This feels like another instance of Deming's (paraphrased) "People will destroy the enterprise to align to their incentives."
The people who make these decisions may be incented on the _short term_ cost savings. It's a fractally smaller version of the entire org aligning to shareholder expectations at the expense of company growth.