You're right. Machine learning is helping computers to think on their own at an alarmingly fast rate. Google's DeepMind is already working on replacing humans in fields like medicine, consultancy etc.
The day the machines take over the humans might not be very far after all.
So if we eschew history and focus on the movies... in both The Matrix and Terminator, the computers decide that human kind is superfluous and must be exterminated. Right?
Could it be because the computers kick our human asses at chess so effortlessly?
Any Laptop can beat the best chess players in world....