Uber ignored local laws to force their way into the taxi market without having to compete on the same terms as existing businesses.
Uber also classified their drivers as contractors to avoid having to pay fair wages and provide benefits.
They've been criticized for this (and many other things) for years. They could have changed course any time, but they didn't want to. They were too busy using internal tools to avoid scrutiny from regulators (https://en.wikipedia.org/wiki/Greyball), threatening journalists who wrote articles they didn't like (https://www.theverge.com/2014/11/18/7240215/uber-exec-casual...), and trapping drivers with predatory auto loans (https://www.theguardian.com/commentisfree/2019/dec/05/uber-l...).
This is 100% Uber's fault.