As mentioned it's way easier for software developers to immigrate to the US, and there is no organization limiting the number of software engineers trained into the profession every year. There is an additional confounder in that the biggest and highest paying software companies are all located in the US and exporting products throughout the world, which is not how it works with physicians.