This. Also a machine doesn't come back with PTSD, wounded or in a coffin, so there are no parents, relatives and friends finally realizing the true costs of war.
Of course some crimes are committed by soldiers who are actively disobeying orders. An autonomous weapon is not going to feel any of the emotions that lead soldiers to do terrible things.
Is a gun unethical for having a trigger that never 'refuses' to shoot? And on the other side of that argument, machines lower the risk of atrocities like the rape Nanjing to zero.