The mention of a book can also draw the reader into the story more deeply. For example, if the reader is familiar with the mentioned book, they might feel a sense of connection and become more engaged. They might start making their own associations between the two works.
It can make the reader view the character who mentions it in a certain way. If a character mentions a philosophical book, the reader might think of the character as intelligent or deep - thinking.