ChatGPT is based on a language model and a lot of facts. Therefore it can construct answers that sounds perfectly fine. However, it doesn't "know" which part of the answer is objectively true or which is pure fiction.