Even though ChatGPT has its limitations (it doesn't always provide correct answers and sometimes makes up fictional ones), it is trained on a huge corpus of text that contains legitimate answers to many questions, and can replicate them and even offer additional insight.