Before Uber (around 2010) LA County mandated that Taxis accept credit cards. I don't think I ever managed to get in a cab where the credit card reader wasn't mysteriously "broken."
Even if I told the driver when I was getting in that I'd be paying via CC, the machine would no longer be working by the time we got to my destination. Miraculously, by the time I said "wow sucks for you" and started opening the car door to leave, the machine would start working again (or in one case they had to call in my CC number, which might be the only time the machine was actually broken)
There is a difference between an employee of a company breaking the law, and the company itself breaking the law.
Yet somehow they are more exploitative. I would never ever want to be a taxi driver, but made ~60k/year as a Lyft driver.