It’s not profiling as the book was collected as evidence after being charged with a crime and with a search warrant (or at least probably cause must be established with other evidence). Profiling would be using information about such a book before crimes were committed or charged.
In addition, such evidence is important in establishing bail, as risk of fleeing is of primary concern.