Hence my use of the word "legitimate".
I'd like to think that even those who think that it's fine for the state to spy on everyone on the miniscule chance that they might be a terrorist, and even those who think that it's OK to spy on everyone just in case they are planning to commit a crime, would agree that the state shouldn't be spy on people for the purposes of commercial advantage.
And what better way to encourage another country to trust you enough to buy military equipment from you than by spying on their government?