You mentioned the idea of management being about cleaning up crap and dealing with people instead of writing code. A few thoughts on that. There is a lot of people and management work involved in making code pay off for an organization at scale. Code by itself doesn't offer any value. It has to be in production, it has to be used by the customers, it has to be something that adds value for the customers. And it has to be managed in a way that the code is delivered before the competition gets a chance to sink you. Also code doesn't write itself, teams of people do, and those teams need to be built and maintained and recruited and taught. Making all of those things happen involves people relationships and soft skills. Your job is to make those things happen smoothly, guide and grow the engineering teams, prevent the fires, and establish the relationships that make that all happen smoothly and scalably.
It's a different set of skills from writing code, but it can be learned if you apply yourself to it and recognize the value it'll provide to your organization if you do.
[1] https://www.ted.com/talks/carol_dweck_the_power_of_believing...