A huge majority of book authors (especially for technical writing) are not professional authors, and barely get any money from book sales. Ask any university professor that has had a book published.
selling physical copies, in-person speaking events, selling the rights to their IP to filmakers to name a few. Freely accessible =/= profitless.