ChatGPT interpolates between human statements that contain knowledge. Sometimes these interpolations correspond with the actual state of the world but sometimes not. When they do it's because they have "borrowed" knowledge contained in the human-generated training data.