Google, along with rest of FAANG are massively over staffed, which they could get away with in a zero-interest rate economy when money was super-cheap, but not anymore.
They could all cut 70%+ without significantly hurting their revenue growth, which makes all the economic sense in the world in the current environment.