I’ve managed large software teams for 10+ years and also worked as an individual developer.

In my experience, most middle managers, probably 90%, have no clue how to manage software developers. It’s not that hard to manage teams IMHO, but you need to focus on the right things.