The AMA doesn't institute caps though they may have lobbied for one in the past (which I kind of doubt) - the Federal Government has the cap via the GME program at the Centers for Medicare & Medicaid Services. Residents are expensive to host and Medicare pays something like $10B/year to train new physicians. Congress could increase that amount tomorrow if they felt like it.