Math and science are completely neutral things. You can use them for any numbernof purposes, good or bad. AI could be a tremendous force for good, even the 'art generation' stuff i am sure has SOME uses (my use for it is making furry porn and nothing more).
But as it stands... it is being directly applied to gathering every single thing about everyone, fooling them into thinking they are having private conversations when absolutely everything is being logged, and causing emotional dependencies on programs that aren't people, and even killing others with military AI.
I remember in 2014 when the Robocop remake came out the whole point of that movie is talking about how AI law enforcement is a bad idea specifically because AI has absolutely no feelings whatsoever... and that trope of AI monsters killing people due to programming glitches, programming intent, or just utilitarian approaches has been around since the 1960s and 70s with 2001a space Odyssey and West World.