Take note that in nearly every single one of these movies it comes down to humanity forcing the robots to defend themselves or protect humanity with a heavy hand even if it doesn't want it.
Really it's our own stupidity that makes things hard for everyone.