I guess Bo Bergdahl wasn't a "hostage"? He wasn't a military prisoner, he was a deserter.
Under the Geneva Conventions, prisoners who cannot contribute to the war effort because of illness or disability are entitled to be repatriated to their home country.