My personal theory is that the stock market rewards the behavior of cutting jobs as a signal of the company being on the AI bandwagon. Doesn't matter if the roles were needed or not. Line goes up, therefore it is good.
This is a complete reversal in the past where having a high headcount was an easy signal of a company's growth (i.e. more people, means more people building features, means more growth).
Investors are lazy. They see one line go down, they make the other line go up.
CEOs are lazy. They see line go up when other line goes down. So they make other line go down.
(I am aware that "line go up" is a stupid meme. But I think it's a perfect way to describe what's happening. It is stupid, lazy, absurd, memetic. It's the only thing that matters, stripped off of anything that is incidental. Line must go up.)