How did “country dweller” (“pagan”) come to mean “non-christian”?

How did “country dweller” (“pagan”) come to mean “non-christian”?