Actually Kompany poor performance when handling Burnley does not have to be compared with his good performance with Munich at this time because of course both teams have a quality gap, I am sure that even if Ancelotti handled Burnley the results would be the same and vice versa even though the one who trained Munich was not Kompany, Munich still has a great chance of winning the Bundesliga trophy because Munich DNA is the DNA of champions, the football competition is complex not only about tactics but also about the budget that supports it. What is interesting about Kompany is that he learned from his experience at Burnley and applied it to a team that is more supportive in terms of budget and player quality, this has proven successful in the Bundesliga but the benchmark for a team like Bayern Munich is the UCL, this is where Kompany ability is tested.
Bayern Munich fired Tuchel because Tuchel lost to Leverkusen, but nobody realizes, Leverkusen earned 90 points last season, which means if Kompany stayed the way it is right now then 82 points would have been a loss for them too. Obviously, it is not an easy choice but we could handle Bayern Munich without Kompany too, that wouldn't be a shock. Obviously he won so he is not getting sacked, it would be weird.
Some teams do fire their managers who win them titles, like PSG did that for example, but Bayern will let him run out his contract and wait for him to lose, if he doesn't then they will see at the end of the contract. Right now, it looks like it is not bad but he isn't that far from being bad, he isn't that great, he needs to get better.