Sci-fi writers were generally wrong or over-simplistic about many predictions, mostly just extrapolating whatever the current zeitgeist of their time was, and stretching it out to 50 or so years into the future
I mean look how most science fiction of the 1980s depicted the world of the future as dominated by Japan... Look at Robocop 3 :)
Computers were then just appearing or increasing in public discussion, along with fears that they'll make humans less human somehow: Like in this Computer Chronicles video about word processing from 1983 at 4:08: "Some writers are concerned that computer assistance may promote dry bland writing."
https://www.youtube.com/watch?v=Jt0OoXluC8g
AI predictions were generally hostile to humanity: Terminator appeared in 1984, and the first Alien movie in 1979 had an antagonist android. 2001 A Space Odyssey with a disagreeable AI came out in 1968. All way before the real world had anything remotely close to today's AI: It was a reaction to the appearance of computers themselves.
On the other hand, Star Trek had optimistic AI like Data.
Humankind's own sentient creations leading to the ruin of humans is probably a trope in fiction since thousands of years, with golems or summoned demons etc.