Natives tend to have local support networks (family and friends) help with money, material help and connections. Foreigners lack safety nets.
From a government point of view, you can select the best foreigner candidates (eg pick 1 doctor out of 10 candidates). That can't be done with locals (good and bad doctors want jobs)
This is maybe true in the abstract but is entirely different from the on the ground reality in Portugal. It’s a lot more complicated in reality but generally speaking citizens have less advantages and opportunities than you might expect in key areas when all is said and done.