He actually got a very valuable (to him) “something in return,” a cover story that enabled him to return five high ranking generals to the Taliban. Without Bergdahl he’d have had no way to get from here to there. IOW he used the “swap” to cover his treason.
The cover he used didn’t work. The bum is a Traitor.