Do not professors make money by writing textbooks? Why would they want to give their work away for free?
First, the vast majority of faculty do not make significant amounts of money from writing textbooks. If you take into account that most fairly successful textbooks sell a couple thousand copies a year, then amortized over the three or more years it usually takes to write a book, the royalties work out to something like 25 cents an hour.