Like most English words, the term “pagan” is Latin in origin.
The word comes from the root word paganus, which means “peasant.”
During the mass conversion of Rome to Christianity, the peasants and farmers were the last to be converted, and so the childish name-calling began.
Lots of childish folks back then. Lots of childish folks even today.