Especially since there's a generations-old tradition in SF of conscious AI characters who are being mistreated by humans, so it's not hard for people to start feeling sorry for them.
(There were antagonist AIs too like the Maria android from Metropolis, Colossus/Guardian, HAL 9000, Proteus IV
youtube.com
Short Circuit (8/8) Movie CLIP - Number 5 Is Still Alive (1986) HD
YouTube video by Movieclips