Doesn't the AMA serve the medical industry? They don't have to make profits themselves. If a byzantine coding process raises medical treatment costs, they'll do it. Just like how they intentionally cap med school admissions to keep doctors in demand and inflate their salaries.
The AMA is functionally the trade union for doctors. They work to maximize the income of their members. Maintaining a shortage of doctors is one of their primary tools.
If this also helps the medical industry, it's an accidental side effect.