Likewise; I actually enjoy writing code, and I'm pretty damn good at it; but I will rather take the role as manager myself than write code for most managers I've come into contact with.
Many workplace issues can be solved, a shitty manager is a total dead end.
I've never met a person who didn't believe with all his soul that he could do the job better than his manager.
Corollary: anyone promoted into management instantly becomes a PHB to his reports.