Wasnt Mecca some other religions shrine before it became Islam? Like a Hindu shrine or something?
Yes. Mecca was home to polytheist gods, including a supreme one.
https://www.greendome.org/what-was-the-pre-islamic-period-like-in-mecca/