I think this is one thing that has changed dramatically (and for the better) in the last ~10 years.
I started as a developer in the 90s. The only way to advance was to go into management. I was pretty conflicted, as I was promoted from developer to manager. Quit, went to be a developer at a new job, and got prompted to manager again. Quit again & later was promoted to manager again. Did it a forth time & then have been in management ever since.
I really loved coding, but coming from lower income family, was terrified of poverty and thus very motivated to climb whatever ladder someone put in front of me.
I'm an engineering manager today at Google and really happy to see there's now a world where engineers can excel without having to be a manager.
Over the years, I've had a lot of good career talks with people about if they wanted to do people management (or at least try it).
A little bit of a tangent, but it's interesting the myriad of ways those conversations go. Sometimes people who would be clearly great at it, don't want to try it for less-than-good reasons. (E.g., not feeling worthy, would the team respect them having been a peer).
Sometimes people who would be terrible at it, really want it for bad reasons as well. (E.g, manager = power (ha!), manager is the only way to advance or be respected (not true!).)
Of course, they sometimes want/don't want for very good reasons too. (E.g., "I like helping people grow" or "I would have to talk to people and I hate that", respectively.)