The spirit of the comment you're replying to is admonishing AI's use of pre-existing melodies, harmonies, chord progressions, and musical themes from songs that were fed into it.
Be it Beethoven (which is in the public domain so hey, free game) or Sabrina Carpenter (very much not in the public domain, but arguably not musically complex), its taking pre-existing tunes and regurgitating it into something else.
Now, go out and take those same sounds off the internet, don't pay the people who recorded those sounds, and use them to train an AI, and sell it. You're still a thief, but now it's much harder to prove you're a thief, and lots of AI investors will invest money making sure that courts decide you're not a thief.
The recordings may be legally protected. But if I use a sound engineer to listen to those recordings to fake these sounds, it's not that much different than an AI doing it.
.....which also did lead to numerous legal battles around sampling and artists paying royalties for sampling, so in general "society" didn't go "oh sampling is fine to do all willy nilly" out of that, it made artists pay other artists for using their work.