Origin of microbiological zoning in groundwater flows