Allah is like the tawaf. Tawaf is rounding 7 times the Kaaba. Muhammad starts rounding the Kaaba then some bad people throw stones at Muhammad.  Muhammad didn’t stop, he complete 7 rounds of Kaaba After that Allah became happy and made it compulsory 7 rounds of tawaf. So, all pilgrims around 7 times Kaaba because it is compulsory.