Bayern is a big club and it is very unlikely that no one wants it, it's just that Bayern's choice of finding a coach before is too narrowed down to a coach who is clearly very difficult to have.
Yes, Bayern in looking for a coach before were too focused on something they could not pursue where Xabi and Nagelsmann were actually quite difficult to get especially for Nagelsmann who did not want to return after the previous dismissal but they were too forced to do so.
In addition, the Ten Hag issue was previously only a rumored exchange between Ten Hag and Tuchel but when Tuchel was fired it was certain that Ten Hag did not get the opportunity.
Now, Bayern have appointed Kompany as their future coach and we just need to wait for what he will do for next season. At the moment doubts still exist but this is precisely the opportunity for Kompany to show that he is able to make a difference for Bayern to get better especially indeed this is a good opportunity for Kompany to develop his career as a coach.