The Kaba is full of idols!
In 624AD the Kaba contained 360 idols! So why did Allah change the direction of prayer towards it? Because he wants to please Muhammad?
S2:142-150 (Sahih International) The foolish among the people will say, “What has turned them away from their qiblah, which they used to face?” Say, “To Allah belongs the east and the west. He guides whom He wills to a straight path.” And thus we have made you a just community that you will be witnesses over the people and the Messenger will be a witness over you. And We did not make the qiblah which you used to face except that We might make evident who would follow the Messenger from who would turn back on his heels. And indeed, it is difficult except for those whom Allah has guided. And never would Allah have caused you to lose your faith. Indeed Allah is, to the people, Kind and Merciful. We have certainly seen the turning of your face, [O Muhammad], toward the heaven, and We will surely turn you to a qiblah with which you will be pleased. So turn your face toward al-Masjid al-Haram. And wherever you [believers] are, turn your faces toward it [in prayer]. Indeed, those who have been given the Scripture well know that it is the truth from their Lord. And Allah is not unaware of what they do. And if you brought to those who were given the Scripture every sign, they would not follow your qiblah. Nor will you be a follower of their qiblah. Nor would they be followers of one another’s qiblah. So if you were to follow their desires after what has come to you of knowledge, indeed, you would then be among the wrongdoers. Those to whom We gave the Scripture know him as they know their own sons. But indeed, a party of them conceal the truth while they know [it]. The truth is from your Lord, so never be among the doubters. For each [religious following] is a direction toward which it faces. So race to [all that is] good. Wherever you may be, Allah will bring you forth [for judgement] all together. Indeed, Allah is over all things competent. So from wherever you go out [for prayer, O Muhammad] turn your face toward al- Masjid al-Haram, and indeed, it is the truth from your Lord. And Allah is not unaware of what you do. And from wherever you go out [for prayer], turn your face toward al-Masjid al-Haram. And wherever you [believers] may be, turn your faces toward it in order that the people will not have any argument against you, except for those of them who commit wrong; so fear them not but fear Me. And [it is] so I may complete My favor upon you and that you may be guided.”