It's endemic to urban areas of the US, where "rural" has the connotation of ignorant, backwards, stupid, inbred, etc., and "farmer" is the epitome of rural. Bog-standard xenophobia and classism.
It’s an interesting form of classism because I’d bet the average farmer is vastly better off than the average cubicle slave, in addition to being masters of their ___domain.