First Bayern Munich wanted to hire Xabi Alonso and he could be a legend in Bayern Munich and help this team to get out of this bad situation they have. But they couldn't hire this coach, however, there was no guarantee to say Xabi Alonso could even have a good performance in Bayern Munich as he had in Leverkusen.
Also because of the bad situation of Bayern Munich even some other coaches rejected the offer from this team. That's why they had to go for Kompey and hire this coach while he was not their first option at all considering the experience he has.
I don’t heard the rumor or hear a real news that Bayern Munich went for many other coaches and they refused before they finally decided to sign Kompany. I only heard of them wanting to sign Xabi Alonso but were not successful after he decided to stay back at Bayern Leverkusen for another year when his contract expires with them. Bayern Munich and only them can know what they saw in Kompany that the rest of the world are not seeing and are so confident in him that he can help them get out of this difficult state they are. If they don’t succeed with him, there situation will become worse and will cease to become the legends of the Bundesliga that we all know them to be all this years. Bayern Munich still can be at their best the next season because it is now always easy to bring down a lion for too long without climbing back to the top even after seeing a lot of signs that they can do it again. Xabi Alonso have just done the impossible and that’s what will give him the chance for a better offer from top teams when he decides to leave Bayern Leverkusen soon.