That's because programmers can do management. It's not unusual to see engineers get tracked into management. I have certainly never seen it go the other way (partially because managers usually make more than engineers I'm sure.)
Also, yes - anybody can do management, and anybody can do coding. Learning to do either effectively is a skill.