Always remember, what these models do is generate next-words based on existing context. ChatGPT sees "What is Confidence-building Defense?" and generates the next word "Confidence-building" and so on, based on probabilities with which these words can occur in this context.