They are all overstaffed because they were financially incentivized to overstaff, both for valuation and defensive talent hoarding reasons. This was a positive feedback loop which unwound in tech and will unwind in AI too.
This has always been true for any mature companies.
The conundrum is that tech companies in particular are really averse to be perceived as mature companies, because their valuations have to be more grounded in reality.