Pagan comes from Latin paganus, an adjective originally meaning "rural", "rustic" or "of the country." As a noun, paganus was used to mean "country dweller, villager.
As Christianity spread into Antioch, Alexandria, Carthage, Corinth, and Rome the word for "country dweller" became synonymous...