It's my understanding that, historically, the role of the mosque is to be a place of learning and financial assistance. Madrassas have since come along for the former, and associations now prevent Muslims from begging in the streets. Looking at them as part of community power structure is interesting. For comparative purposes, I suppose that Christian churches support education and financial stability too.