The transition of the city from the abode of Gods to the space of reason and money is a recent phenomenon that was guided by the advent of industrialisation, instrumental modernity, and mercantilism.
However, this supposed contradiction of urban life and religion, even in modern Western cities, is more of a convention (or even convenience) rather than any field-based evidence.