In fact, as a manager in my current team I probably spend more time nudging people to fix technical debt they've forgotten about because they're excited to work on the next feature than vice versa. In other teams I've spent more time cautioning away from writing functionality that isn't needed right now to avoid overengineering the solution.
How you communicate that guidance and extra context has to depend on the team, what works for one won't necessarily work for another. What you found to be terrible another developer might love - as a developer who now has some management responsibilities I had to learn that some people actually want a lot more management than I would have ever wanted - my "micromanagement" is their "I am supported and know what's going on".
Anyway I'm not saying there aren't bad managers out there (or that I'm a good one), but it's a lot more nuanced than you imply, and what you might hate in a manager others might actively seek out.