Risk, capability, and previous experience are all factors that are considered when selecting a contractor.

And just because a foreign contractor got the work it doesn't mean locals are cut out of the picture. They will obviously hire local labour and use local subcontractors (machine hire + water trucks probably). And then there will be money going to things like fuel and accommodation.