It is possible that Bayern Munchen management no longer has many choices, so they appointed Kompany as manager next season. Another consideration is pursuing time to prepare the team, when the transfer window opens, the position of Bayern Munchen manager will no longer be empty. To be fair and not to underestimate Kompany, despite many doubts about him, he deserves time to show his tactical qualities. With the vast difference in squad depth between Bayern Munchen and Burnley, it seems Kompany efforts will be easier.
Bayern Munich staff made a huge communication mistake by announcing that Tuchel will be fired and before that they fired Nagelsmann and since they made these acts, other top coaches refused to take the team on charge. They asked Nagelsmann to return and he refused and for obvious reasons, Tuchel decided to not listen for them to continue training the team after they fired him. Leopard ate my face like they said, Bayern Munich fantastic staff decided to hire Kompany that I assume will not last long than the first six games if he fails to maintain Bayern Munich in the top position.
Changing managers is a normal thing in football. But if this manager change becomes excessive then the matter becomes different. Like Bayern Munich they can't be satisfied with their performance at the end of every season and that's why they appoint a new manager every season. English Premier League club Chelsea does the same thing. Chelsea perform poorly every season and at the end of the season they change managers and this season they have maintained that consistency.
All these activities but of course all other managers follow suit, they will refrain from taking charge of these teams before taking charge because they don't want to ruin their reputation by taking charge for just one season. Bayern Munich may have the problem of not being able to recruit a quality manager to their club.