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.
Except there is no organization limiting the number of software developers. In fact, I can't think of another field out there with so many free resources for one to educate and prove themselves a capable programmer.
Nurses make more in the us, then most doctors outside the us. There is a shortage of people in general in the usa, and we have the INS artificially limiting immigration for everyone.