Every new medicine, every name brand medicine, every generic is paid at an exorbitant rate in the US which allows companies to provide cheaper medications to other countries. Every new surgery, every new technique, literally every part of the medical process is subsidized IN FULL by Americans.
Put it simply - if the US decided collectively we will not pay any more than cost for generic medication the entire world's healthcare system would collapse overnight. Most of the west would no longer be able to socialize their healthcare. 3rd world nations would likely halve their life expectancy. This is why, in my opinion, the US will never be able to do a medicare-for-all type situation. It's already unaffordable on the current tax basis strictly to take care of Americans. The unmentionable cost of subsidizing literally the entire planet's medical system through paying insane prices for everything makes it unaffordable even in some fever dream scenario.
When you're getting your cheap healthcare and free medicines take the time to thank your nearest American. They are dying so that you can afford to live. Your insulin is only cheap/free because some poor sap in America is paying quite literally 1400x your cost. The taxes other countries pay into their medical system pales in comparison to the amount of money Americans pour into their healthcare to keep it cheap everywhere else. There is simply no comparison to how badly Americans get bent over.