While I find the animistic idea that all things have a spirit and should be treated with respect endearing, I do not think it is fair to equate derogative language targeting people with derogative language targeting things, or to suggest that people who disparage AI in a particular way do so specifically because they hate black people. I can see how you got there, and I'm sure it's true for somebody, but I don't think it follows.
More likely, I imagine that we all grew up on sci fi movies where the Han Solo sort of rogue rebels/clones types have a made up slur that they use for the big bad empire aliens/robots/monsters that they use in-universe, and using it here, also against robots, makes us feel like we're in the fun worldbuilding flavor bits of what is otherwise a rather depressing dystopian novel.