In some academic fields, books are also just collections of technical papers on some topic, or one really long paper, which is probably not something to earn money from. I assume most are sold to libraries, similar to journals. Though Library Genesis also contains other, more commercial books.