I went back to college in the early 2010s. Even then it wasn't uncommon for a text book to come with a license code for an online learning module that was both required for classwork and non-transferable.
So yes, I could share the book, buy a used copy, or rip a PDF from an ebook, but that doesn't get me into the online class module that my professor is requiring for class, because that's hosted by the textbook's publisher and I don't get access unless I buy the book new.