Constant spread of a virus is what can lead to the emergence of variants. The more a virus spreads, the more it mutates.