An exec reports "phone stolen," phone found in his "collaborator's" locker who accidentally shoved it into her bag along with other papers on the table. Both the exec who reported theft and his "accomplice" are send to jail, and a "national security" case just sprung up from two completely unrelated cases thanks to prosecutor's creativity.
Same thing here:
1. Apparently they found that he simply had "weird files" on his flash drive.
2. He had full right to access them.
3. He deleted "weird" files he had rightful access to, and voluntary surrendered the physical medium upon his resignation.
On the sole premise of him deleting "weird" files, he was accused of espionage, with the charge constructed from nothing but tangents, but no "corpus" to "habeus."