It is like this in the UK at least. Not in any overt way (usually), but the countryside is synonymous with white British people.
When people from cities talk about wanting to move to the countryside and raise their kids in a 'nicer environment', you know it's not just for the fresh country air.
Though never said explicitly, 'moving to the countryside' has become a byword for living in a white homogenous community.
Had immigrants made the countryside their home in great numbers as they have the cities and if the majority of whites lived instead in the cities, you can bet that this idyllic idea of living in the countryside would be gone overnight.
Living in the city would be seen as most desirable, with all types of reasons being citied such as 'great historical culture' and 'good community spirit'.
Their true intention - to live among other white people, would never be given as a reason, although everyone would know it was the main one.