It logics its way to it.
By predicting the next word in a sequence of words.
Sure? It kinda sounds plausible? But man, if it’s that straight forward, what have we been doing as a species for so many years ?