Just because the death penaty can be a punishment does not mean it has to be the imposed punishment.
So why do you think the death penalty should be imposed?
He's a Muslim sympathizer (Did you not see the video of Obama and the traitor's parents in the Rose Garden?)
His father was posting pro-Muslim, anti-US tweets before and during his son's desertion.
He abandoned his post, leaving his other team members vulnerable to attack without warning.
He probably gave his captors as much information as he knew about operations, troop strengths, and plans.
He was used in trade for 5 top Taliban leaders.

We have yet to trade ANYONE for the captives in Iran, but this guy is worth 5 top generals of the enemy??
Obama bypassed Congress to make the trade. He knew they would not approve, so he did this ILLEGALLY.
More military died looking for him.
There has been no accounting for why or how he was taken prisoner. Had he remained at his post, he'd have never been captured.
The Army has investigated for a long time now, and they see cause for charging him with these offenses, They don't do that with only circumstantial evidence.
Roll all of that up into a total package, and what we have is a deserter who not only put our military and their objectives at risk, but was REWARDED for it. The punishment must be harsh enough to let the next enemy sympathizer think 3 times before deciding desertion is worth it.
Is that making an example of him? YOU BET!! It's one of the best things about punishment. It hopefully deters others from making the same choices.
In the military, unlike the civilian world, the seriousness of one's actions in a war zone can have dire consequences. That's the reason for the Code of Conduct. He swore an oath to give his life if necessary. Instead, he switched sides and was used to cause even more damage to our security.