We already have a shortage of primary care physicians. Imposing additional selection criteria based on some arbitrary, subjective measure of geekiness would be completely stupid and counterproductive.
Software engineers only started earning that kind of money in the last decade or so. When today's new doctors were starting off on their education path ten years ago, doctors probably still earned twice as much as even top software engineers.
Medicine is also prestigious in a way that few other careers are. People take notice when you say you're a doctor, and a lot of people enjoy that feeling. A huge number of parents pressure their kids into pursuing medicine, having your kid become a doctor is a surefire way to win the status game among your friends.
I personally know quite a few doctors. I'd say for most of them that desire to help people and desire for personal status were both motivating factors in their career choice.