Students don’t see it as spying rather ‘a Duty to their country’ - and they are taught this.
As does every spy.