They were all pardoned under one of the four amnesty proclamations that Andrew Johnson issued during his term in office.
Ok - so stop talking like anyone was guilty of treason. They were not.