ChatGPT and the like simply put together words in the way they are more often found to be together in texts found online. Meaning that, in time, "AI" will basically reproduce what AI has said in the past. Which, btw, is what all algorithms do