My theory is that he had to balance the journalistic scoop of the century with the risk of being arrested for illegally accessing/storing classified information. If they had noticed before he published the story then he could have been vanned and the public told that he had infiltrated a secure channel, and who would be able to say otherwise? MAGA people would cheerfully call for his execution.