What ultimately got him wasn't his "maverick rule-bending to compete against the establishment".
He created this bro-themed caricature of a corporate culture, and he did so for no reason other than enjoying that sort of atmosphere, or being incompetent to stop it. Or both.
Let's not start some sort of myth of martyrdom around Kalanick by conflating these two. Although, yes, this strategy of braking local regulations and expecting to win a power struggle with every government anywhere was also on its last leg when he left, and would've gotten to him as well, sooner or later.