Narrated Ayesha: I asked the Prophet, peace be upon him, whether the round wall (near Ka’abah) was part of the Ka’abah. The Prophet, peace be upon him, replied in the affirmative. I further said, “What is wrong with them, why have they not included it in the building of the Ka’abah?” He said, “Don’t you see that your people (Quraish) ran short of money?”

I asked, “What about its gate?” Why is it so high?” He replied, “Your people did this so as to admit into it whomever they liked and prevent whomever they liked. Were your people not so close to the Period of Ignorance, and were I not afraid that that they would dislike it, surely I would have included (the area of) wall inside the building of the Ka’abah. And I would have lowered its gate to the level of the ground.”
[2: 654- O.B. Sahih Al-Bukhari)