The governments set the immigration policies. They probably think it’s easier to import doctors than fix the problems with medical schools, hospitals, doctors guilds, payment systems, ect…
It is very uncharitable to view this as an attack on immigrants.