Fog, like clouds, is a collection of water droplets, dust, and ice. Since city air has more dust and soot from factories, chimneys, and traffic, city fogs are thicker than country fogs.
London, the city long famous for its incredibly thick “pea-soup” fogs, enacted antipollution laws which actually decreased its fog problem!