Because of Burnside's Zeroth Law of space combat:
Science fiction fans relate more to human beings than to silicon chips.
https://www.projectrho.com/public_html/rocket/crew.php#gottahavecrew
There is actually something written earlier. In 1942.
The Wabbler by Murray Leinster
Synopsis: An artificially intelligent weapon's story, told from the point of view of the weapon.
And pretty much all of them explaining how to make them trustworthy:
Treat people-equivalent intelligences as people.
@dashdsrdash @60sRefugee @nyrath @shig
As an aside that may be of interest to folks in this thread, I've recently been reminded of _The Thinktank That Leaked_ (Christopher Hodder-Williams, 1979), which goes the unusual route of having the AI hostility to humanity coming from, not its own nature, but rather from being used as a literal negative-emotion dump by a psychopathic misogynist.
(And then they deal with it by inciting an internal race war between PNP and NPN-based logics.)