ChatGPT maintains coherence in its long generated sequences because underneath the text is a logical model of the topic. Recall that ChatGPT's evolutionary origins come from working with programming languages. ChatGPT appears logical because it has some competence with code.