ChatGPT is a statistical language model, so it writes out sentences that are statistically plausible, given the (enormous) corpus of written text on which it was trained. It will easily generate statements of "facts" that are just statistically plausible language.