SD card

I bought a bag of thumb drives and SD cards at Goodwill. So far I found many things n them. The SD card I popped in today has a bunch of books on it, over 30. Would it be wrong of me to keep them? Is it illegal to read them? If they were physical books I would know the answer would be that they can be read secondhand.