Hell, other countries hand out much more severe (i.e. lethal) punishments for traitors. It is a shame the US doesn’t as well.
If you look at a lot of these cases, these people are more mentally ill than true traitors; the leniency vs harshness often takes that into account (dumb person following the crowd and doing something typically out of character vs someone with clear hostile intent). The true traitor is the orange man.