CNVs can arise through various mechanisms, including DNA replication errors, non-allelic homologous recombination (NAHR), and non-homologous end joining (NHEJ). Environmental factors and certain genotoxic agents can also contribute to the formation of CNVs.