Its very rare for a poor performer to get a promotion like that.
Generally in big companies especially, if you do well at development and promote yourself you'll become a manager regardless of managerial ability. You then get to micro manage the bad developers you mention.
But Ive never heard of someone getting promoted due to poor performance.