You got that via the legal "first sale doctrine" which has been killed for digital works.
Arguably the U.S. courts are in the wrong here. We can only hope first sale doctrine is extended to digital goods in the U.S. in the future, as it has been in the EU for over a decade.
[0] https://scholarlycommons.law.northwestern.edu/cgi/viewconten...