Sometimes you identify, feed them false information, and watch who they talk to...
Sometimes you screw up.
There can be good reasons for GE/FBI/CIA to let a spy keep their job.
Encrypting personal file on your laptop is probably an improper use of the company resources. But this might not be necessarily criminal. What if the guy had only encrypted his vacation pictures ?
However, you can not just go and say "Hey can you decrypt these files for us" because he will understand he got caught and can argue that he encrypted them but that was for additional safety, and it did not send or sold them.
So you want to caught him sending the data out of the company to be sure to indict/convict him. And that's what they did.
Fire-able offense as the laptop was company owned and such behavior sets all alarms. Once fired, they get to look at your history...
Let's admit that when dealing with IP worth tens of billions different procedures are in place, and the burden of proof for being fired /investigated is much, much lower than "beyond reasonable doubt" used to jail you.
I was planning on working from home and my network at home would have taken hours to get all the files from source control over the corporate VPN, so I downloaded the entire source tree to a thumb drive.