It does seem messed up that we see a bad behavior, create a law to ban that behavior, and the law's biggest beneficiary is the company doing the bad behavior.
I’m of two minds about our legal system in this regard. It’s nice that you don’t really ever have to be worried about getting punished for things you did in the past suddenly being declared illegal but in doing so it rewards entities who have no conscience. And large groups of people acting together are quite good at silencing individual consciences.