The cost of becoming an MD is astronomical. I have a nephew currently studying for it and he's looking at $500,000 in student loans. For a school in idaho of all places.
Part of the shortage is also because very few people can afford to become doctors.