Management is just a way to coast. I don't understand why we need to "manage" grown up adults. What we need are team leads who code and architect. Then give them the autonomy to run teams.
Some management is bullshit, but literally "run teams" is the important part. But if you get big enough, you do wind up with departments. It grows like a fractal.
Think of it as trying to run a big country with direct democracy. Can it be done? Maybe. But there are good reasons why democracies become indirect after a certain scale.
For example, Pirate ships ran with a Battle Commander, Accountant and Crew.
Please note I'm not saying you can't be overprovisioned in managers. I'm replying to the parent comment that sees no need for managers.
"running teams" is literally management