I’d bet big money that this mosque was built on the site of a much more ancient Hindu temple
I think that was mentioned in the excerpt beginning this thread.