"The Confederacy’s lack of resources was not the chief cause of the horrors of Andersonville, because the Rebels did not have to keep the Union troops captive. In fact, they would have preferred to send many of their prisoners back. The Union, though, would not commit to troop exchanges unless black soldiers were included."
https://www.theatlantic.com/ideas/archive/2019/07/border-facilities/593239