Sociologists could have a field day with this question, but the explanation could be something as simple as the fact that people who live in cities are relatively insulated from how difficult and challenging it can be to produce the food, energy, equipment, devices, etc.
FORBES: What Explains The Partisan Divide Between Urban And Non-Urban Areas