Essentially no one pays for medical school outright. They take out loans. Those loans aren’t credit based. People aren’t priced out of being doctors.
They are priced out earlier - when they can't get the academic credentials to pass the medical school gatekeeping.
Don't they have to back these gigantic loans? That might deter people from going to medical school out of fear they're not gonna have what it takes and drop out halfway with huge debt.
Half a million in debt is scary. Especially if you have any doubts that you can match and make it through residency at the end. It's even scarier if you come from a family making $50k/yr.
Loans need to be repaid. I have many physician friends who graduated from medical school with 500k-750k in student loan debt (including debt from undergrad which compounded during medical school) with a combination of federal student aid as well as private loans anywhere from 8-10%. After graduating medical school, they completed 3-5 year residency programs earning somewhere in the ballpark of $50k-$60k salary. This is in an expensive northeast US market where such a salary barely covers basic living expenses, and as such their debt continued to compound. After completing residencies, they earn $175k-$200k salary which is about average for this area as an attending physician in their specialties (primary care related specialties like Family Medicine).
You do the math: over a 10 year repayment period with compound interest, their education cost them MILLIONS and they'll be well into their 40s before they start saving a dime for retirement. The cost and scarcity of medical education is extremely punitive to doctors and prices out many would-be great physicians. Many I know who have gone through this ended up regretting it due to the enormous financial burden they are saddled with for many years after becoming an attending.
Maybe folks believe these professions should be reserved to those who inherit great amounts of generational wealth.