I know the yard in California used to charge sales tax on the core charge and not return it when you brought the core back. Supposedly CA said that was legal.

https://www.cdtfa.ca.gov/lawguides/vol2/suta/315-0370.html