This is among the significant trade inequities. Other countries force pharmaceutical companies to choose between selling their product for little or less than no profit in order to sell in the countries' market. The pharmaceutical companies compensate by charging higher prices in the US
Like the mythical frog boiled to death, the companies don't flip off the shake-down countries and bail. Like so many companies in other industries, they have a corporate culture of working with and around mini-tyrant bureaucrats instead of fighting back. The other side of the coin, though, is that fighting bureaucrats in your major marketplace(s) can be corporate self-harm or suicide.