Isn't this due to treason being interpreted as providing an enemy with information or assistance during a declared war?
Its probably because of the narrow definition of treason written explicitly into the Constitution [1].
[1] http://www.law.cornell.edu/constitution/articleiii#section3