I'm just guessing, but what probably happens here is that the authors don't get too much money per sold copy anyway, and the benefit of being an author of a very popular book is probably higher than of collecting the royalties for a few sold copies.
"If you want to steal the text, it's pretty easy to find an illegal copy, but you can get a nice illegal copy from LibGen. There's little risk in stealing stuff off the internet,"