You ask a chatbot a question and a paragraph appears, one word at a time, sounding like someone who knows. It helps to know what actually happened. The model read an enormous amount of text and learned which words tend to follow which. When you press send, it picks one of the likely continuations — not always the top one, which is why the same question can give you a different answer twice — appends it, then does the whole thing again with your question plus its own last word.
That loop is the entire trick. No database sits behind it, and no hidden reasoner checks the facts. It is predicting the next token — a token being a word or a piece of one — a few hundred times in a row.