It's not until around 1950 that medicine becomes a virtually guaranteed path to being in the top 1-2%. It's not until the late 70s that it's viable for anyone almost anyone (people without already wealthy parents). It's not until the late 90s that the average person who cares about nothing but money has figured out that medicine is a virtually guaranteed ticket to being "rich".
I think the problem stems from there being too many people in the profession that care about almost nothing but having a lot of money - which isn't any different from most professions where you can make a ton of money.
I do believe that the vast majority of doctors, especially older ones, AT THE VERY LEAST have decent intentions.
But even a very small percentage of wildly greedy people can damage a system severely.
I'm not sure how you put Pandora back in the box here.
At the end of the day, good doctors are providing a service of almost unlimited value.
Modern medicine is basically a miracle if you're literally about to die.