There are a few hundred masjids in Makkah. And there is a difference of opinion regarding wether you get the same reward praying in the sacred masjid or within the sacred area of Makkah. The most correct opinion however is that you get the same reward. And during Hajj period almost every single masjid gets jammed packed, so it is useful to have these many masjids.