Variants arise through mutations, which are changes in the virus’s genetic code. These mutations can occur when the virus replicates inside a host. Some mutations may confer a survival advantage, allowing the variant to spread more efficiently or evade the host's immune response.