Twitter's share prices began sliding in 2019 and there was little chance of reversing the trend as long it continued haemorrhaging cash in its wage bills, the result of a strategy to skew it politically by stuffing it with thousands of highly paid but barely (if at all) competent 'moderators' and "trust and safety officers" who ticked the right boxes on their applications.
Literally a case of quantity over quality being the only way to achieve the goal of turning it to a neoliberal echo chamber/propaganda machine.
I reckon this (the company's problems balancing the books) would have been foreseen, but the price was worth it - although they didn't get the queen bitch into the Whitehouse, Orange Man was later successfully removed and the Biden puppet regime installed.
Musk probably wasn't anticipated, but one way or another, by someone or other, things had to be taken in hand and all the dead weight the company was carrying sloughed off.
It's now academic IMV - the damage has already been done (mission accomplished).