Earlier quoted context omitted.
That's an unethical practice employed by some companies. Although in many cases it can be circumvented by buying old textbooks anyway. I am glad that many CS authors nowadays make textbooks available for free. And companies like O'Reilly, Packt, and Manning provide DRM free copies.
also many professor make wink-and-nod that student may simply "find pdf copy" from internet. good ones are not desiring for to make students pay large moneys.
Binding and printing: $1.50
Royalties to professor X: $$
I literally changed majors back in my school days over those shenanigans by the department head.