@mesquite,
Deut refers to waging war, not attacking the innocent.
As for slavery, God has a reason for everything.
Because they understood the meaning of physical slavery, the truth of their slavery to sin and their need to be saved and redeemed can be made visible for all to see and understand.
Lol why would he want people to serve anyone other than him ? ( slave masters)