Under the mosque there was a caravansary. My guess is that it on one hand provided a raised platform for the mosque, and on the other hand money for its upkeep.
Copyright Dick Osseman. For use see my Profile.