the legal fees and reputational damage make it not exactly free
Honestly as a big company why wouldn't you just go cutting corners and breaking a bunch of laws. The gain you get is larger than the loss when you get into legal trouble so why would you follow the laws anyway.
Consumer behaviour is not really affected by worker treatment reputation, Amazon warehouse working conditions are known to everyone.