I am not a lawyer, but criminal culpability has everything to do with state of mind / mens rea. This is why "murder" is a crime but accidental homicide is not, even though in both cases the same actions might have led to the same consequences.
"State secrets" is also one thing, "classified material" is another thing.