Because the American Medical Association artificially restricts residency spots in hospitals. There's really not much more to it. This explains the proliferation of NPs, PA-Cs, etc acting as GPs. In reality, we simply need more doctors, so we should uncap the # of spots.