As for why US salaries are so high, it's because the training it so much longer and more expensive than it is in other countries. The most common training scheme for general practitioners internationally is 6 years of medical school + 1 year of internship. In the US, it is 4 years of undergrad + 4 years of medical school + 3 years of residency. Add on the ridiculous pricing for higher education in the US (public medical schools charge about 50k/year, and since medical school is a type of graduate degree, med students do not qualify for subsidized Stafford loans) and it would be financially untenable to be a physician in the US if salaries were the same as they are in Europe.
Meanwhile, it's pretty easy for a software engineer in the US to make that much not long after graduating college (I don't want to over reference something like FAANG salaries, which relatively few engineers make, but still, it's totally reasonable for a software dev to make that much somewhere between 0-10 years after graduation). That's after going into much less debt, and software jobs are way, way, way easier than medical jobs - honestly I think anyone who says otherwise is just full of shit (I'm a software eng for what it's worth).
So most people who can go on to be doctors have at least a similar level of intelligence/work ethic etc. as software devs (or lots of other careers in business, etc.) There is no way doctors are ever going to get paid significantly less than similarly credentialed professionals in the US.
For similar job descriptions most equivalent physicians would have higher compensation in Canada than the US, contrary to what that dated study says.
Definitely agree the majority of physicians aren't hurting in either country although I think the US/Canadian compensation is fair given the years sacrificed/intensity/work hours/stress (disclosure: I'm a physician). Some specialties like primary care and pediatrics remain very underpaid.
Source: https://www.whitecoatinvestor.com/how-much-do-doctors-make/ (actually a MedScape survey, but that requires a login, so I found this which summarizes the survey).
"Physicians in the United States are among the best paid in the world (Bodenheimer, 2005). The average U.S. specialist physician earns $230,000 annually—78 percent above the average in other countries, as shown in Table 2. Primary care physicians earn less (they earn $161,000 on average), but the same percentage more than their peers in other countries." - sauce https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4511963/