Temples and mosques have different story. Devotees generally enter temple with gold, silver and cash offerings in return for hope that makes temple richer. Several Indian temples have a net-worth in billions. The golden temple dome in Amritsar is made of gold though its treasure is not made public. Anyone can eat there all day every day, so the revenue is not hard to imagine. The shrine in Ajmer mass money from everywhere, some Bollywood mega stars too visit the shrine with lavishes loaded on head hoping that their forthcoming movie should be earthshaking.
But some average independent mosques live hand to mouth unless supported by the Gulf kingdom or so. Some find it hard to foot wazoo water, electric bills and Muezzins appear deprived. Their main source of revenue is the sympathy of Friday attendees and Khatme Traweeh money campaign. Children are also made to circulate begging looking box between rows during Eid prayers. Overall, it is hard to meet end.
So, how does temple and mosque differ in fortune? I think mammon offerings in temple is like an investment for hope, optimism or even superstition for the better subsisting. But Mosque does not (rightly) make such claim, except that its attendance is mandatory without guaranteeing any worldly hope. And if the entered mosque belongs to the other sect everything further shatters.