You bring up many good points.
This was within the USA. The conditions are likely even more neglected in the older countries, where the general job economy stays low.
Maybe the church you visited will be declared a National Landmark and then receive enough money to update the wiring and plumbing. Out here in Ca., it would also need to be earthquake proofed with new structures.
In Muslim countries, churches have to get approval for any upgrades (including electrical) or remodeling. That approval is almost never granted.