But the books are in the drawler of the Falcon at the end… (what does it mean ? I have no idea… but the entire movie is like that: constantly changing its mind about everything)
Looks like Rey stole them then hence Yoda’s quip “there is nothing in there which Rey does not possess” or something!