Bergdahl was just a convenient excuse for Obama to score points with his Islamic terrorist buddies, and to start clearing out GITMO.
Exactly, he planned on releasing the Gitmo terrorists anyway and was hoping to score a few points by trading terrorists for Bergdahl, not counting on the actual circumstances of his desertion getting out so quickly.