You can probably trace the need for concentration camps back to the Thirty Years War, when the practice of releasing POWs without ransom at the end of the conflict became enshrined in the treaty language. Prior to that prisoners were often killed, enslaved, and/or held for ransom.
Anyway, concentration camps (and refugee camps) are really a logistical necessity.