I think in a lot of countries (including USA) there is a medical doctor's workers union or somesuch successfully lobbying for a regulation on the number of doctors that are trained each year. So the system is far from free market, more resembling medieval guild system, of which it did originate.