They were unclassified by him. His prerogative. He DID have very few friends in the White House, who knows what they pulled.
With the laws they’re trying to get him with, it doesn’t matter whether they were declassified or not.