Textbooks are generally way more carefully made in terms of their presentation, the order of information, their examples. At least in uni, classes that follow a textbook where much nicer to get into for me personally. Why listen to an unmotivated professor reading his notes that he made in 3h for a one time audience of 300 when I could read a textbook that was made in the span of multiple years for an audience of hundreds of thousands?