I think it was less than clear at the time that secession was treason. There are people who still take strong Confederate of Union positions. However, I think the whole business was kind of a sad chapter in US history, and no one was right or wrong.
Actually, one person who considered it something akin to treason was none other than Robert E. Lee. He did not believe that unilateral secession was constitutional and said so.