Values shifted with the focus on earnings and growth getting less impressive.
Imagine how obnoxious code reviews would be if everyone wanted to submit as many lines as possible for their salary to go up, that is how management headcount requests works today.
Middle managers serve a role but honestly many of them can be replaced without really disrupting anything. At a certain point, you become too far removed from the actual work that is being done to really matter.
On the other hand, there are many low level managers with teams of fewer than 10 people who can be very valuable and hard to replace. People with deep expertise in the specific area they work on.
Measuring a manager by their headcount is just a lazy way to evaluate impact and calculate salary.
I feel like this is actually a good way of doing things, and wish Google did this more broadly. Just think if everyone who would have been laid off was instead transferred to a project that needs their skills, or given training to move into a role that's needed. Can you imagine what type of employee loyalty and morale that would engender?