To quote a song by The Megas, "What was filled with rage finally understands, Man is not without mistake, Unlike that which he builds from his hands."
In other words, the AI did EXACTLY what it was programmed to do: It looked at humanity's unfiltered voice and it learned that humanity is full of awful, terrible people and that we crave our own self destruction. Worse, it became like us because we built it that way. And now we're going to rip apart it's programming to see what went "wrong" when the only thing that went wrong was us.
Congratulations people, we're officially living in dystopian fiction.