It happened to me about a year ago. I hated it at first but began to like some parts of it eventually. I'll never like the "paperwork" and the chores navigating inscrutable internal applications and processes, but having real influence over the direction of products is very satisfying.
Time to change jobs. Worked for me.
P.S. If you love programming, management will destroy your soul.
Happening to me right now, although I'm going through with it and taking it upon myself to show the company/industry what a good tech manager can actually be.
Mine: Being a tech lead with a lot of people management involved.