I still feel like ChatGPT is like constantly hitting the "I'm feeling lucky" button on Google.
The danger is in the framing.
ChatGPT can't do either. It can't open the book and ingest it, it can't parse the context from a book's index that a human could see by their bare eye (e.g. indents for chapters), it can't answer the question even if it got trained using the book and the index because the context of the index, page numbers and other metadata is completely lost to it and even if you expanded the training program to specifically take notice of that for books it would still likely be unable to answer the question because it would get lost in the (effective) compression during training.