Being a physician or attorney confers additional compensation in the form of social status and prestige which I think it's fair to say we don't get by virtue of working on code. I also think that as a general rule there is a fairly small percentage of people who like programming, and can sit in front of a computer and focus on code for hours at a time and consider that a fulfilling way to make a living. I doubt that percentage is ever going to be much higher than it is now.