that's because churches are school buildings (you go there to receive the gospel) whereas mosques are prayer buildings (you go there to perform the rituals). protestantism in particular insisted that believers should be able to read the bible and so became the primary vehicle for human literacy in the world; this is why germanic people have been intellectually ahead for the last centuries.
Germany