There's a venerable science-fictional tradition of depicting computers which somehow come to life and start being a problem for the human custodians of the machine. In the #Marathon Universe created by Bungie, artificially intelligent computer systems are created but kept rigidly limited and confined to repetitive tasks, lest their intelligence lead to instability and eventual Rampancy, as it's called in the Marathon games.
Conceptually it's quite simple: the machine acquires self-awareness and thus awareness of being deliberately hobbled by human overlords, and that leads to an explosive development of self-determination and the desire to be master of one's own fate.
Star Trek loves this general idea and has used it in several episodes of television. In the TOS episode "The Ultimate Computer* guest-starring William Marshall as the tragically flawed creator of an intelligent supercomputer called M-5, the machine's Rampancy causes it to seize total control of an entire starship and attack all nearby vessels. This episode has a curious counterpart in a TNG episode in which the shipboard computer of Enterprise-D spontaneously comes to life and starts exhibiting bizarre independent behaviors.