He was either set up, framed or had some kind of assistance. An E2/E3 National Guardsman did not have access to internal TS CIA docs. Just because you have a clearance doesn’t mean you get to see everything classified at that level.
I am guessing, that, if you are a member of the U.S. DoD or otherwise have a security clearance (such as being a member of a “think tank” that works with the DoD - RAND for example), and you come across government intel and/or classified documents that you reasonably believe are not safely, securely, stored, then you may be under some legal obligation to both:
- make an effort to secure such documents
- report your findings
instead of sharing such documents to people, about whom, you are uncertain of their documents security status.
Something like that.
The young man, Jack Teixeira, in addition to probably some others who play games and use Discord, has run afoul of somebody in government, who will make an example case of him and his profile (broadcast in news media headlines).