Yeah, and most of the time (at least at places I've worked) the managers are former coders. So arguing that all managers are stupid just seems silly to me.
Also, yes - anybody can do management, and anybody can do coding. Learning to do either effectively is a skill.