They seem to have been granting contracts to manage all kinds of critical data to Huawei's Palantir equivalent lately, so it's probably less about security risks and more about the current source of the bribe money. If they cared about security they would not outsource this kind of stuff to foreign companies. Spain is not Somalia, why not let Indra do it?
foreigners are a bit more likely to be loyal to the government and not some separatist opposition? or at least the companies corruption will be quite separate from what impacts the local government
this also came up with the 6th gen fighter designs between france and germany. it works when theres a non-european driving, because both trust the non-europe option more than any fellow european. the local lords are too powerful to be trusted, and too competitive against eachother