For about 25 years, in upper-division undergrad as well as graduate courses, I have created notes to accompany all courses I give. Yes, this takes some energy. Also, by the time I started this, I'd been teaching such courses for almost 20 years, so had some experience.
Especially after it became possible to create typeset notes as fast as one could type, the classic problems about "following/not-following the book" could be made to evaporate. Instead of worrying about the impression "the assigned text" would create in students' minds, I could create notes that would follow my intended lectures+discussions. And revise as needed, upon consideration of students' reactions!!!
Another part of my motivation was the ridiculous prices of math textbooks...
... paired with the exaggerated but deliberate encyclopedic-ness of "popular" textbooks: to be a widely accepted text, one must not omit any of the favorite (if idiosyncratic) topics of any instructors. In contrast, if one is not aiming for universal adoption, one can omit less-important things, having the desirable effect that what remains is arguably more important. (The requirements of a good text are not the same as those of a good reference...)
Similarly, I do not create any sort of unlimited number of exercises, especially not make-work ones, but try to focus on genuinely important issues. And I write out complete discussions of these. Yes, year-to-year, this certainly ruins the "surprise" or "secret" aspects, but that seems to me inescapable. The fact that the number of really important basic questions in grad-level math is not unlimited is not a reason to create "new" questions that are silly. (And I think that it is wildly inefficient and silly to pretend that everyone should reprove everything for themselves, e.g.)
Also, I've noticed that being the author of course notes (or actual physical books) gives an instructor greater credibility in the eyes of students... and even if they're "notes" rather than a physical book, creation of the thing does demonstrate commitment and effort.