Please do not write blanket statement , I agree Islam does not abolish it completely but highly discourage it and freeing them and focused on treating them well . some reference in below link ( i guess one of the reason to not abolish it because in war there are prisoners and instead of filling prisions with them its useful to take help from them)