Chatgpt doesn't generate info,it generates text,it is trained to sequence words in language format but it still has to be trained using a large dataset. It's kinda like how your phone can predict the next words you're about to type