The soldier was not innocent in his going over to the taliban. He was complicit in his going to the other side. This should be an example for anyone else who decides that the taliban will look on them favorably.
What makes you believe he went to the Taliban willingly? Was he not captured?