It truly baffles me how teachers could morally justify that. I would immediately think “Wait, if I make my students buy my textbook for the unit, I’m just fleecing them and they have no choice in the matter.” and you would naively hope that anyone else would also feel the same way.