It probably doesnt. ChatGPT is writing a response that follows the question, but isnt necessarily factual, despite the confidence in its reply. The technical term used in the AI space for this behaviour is hallucination.