Mutations can arise spontaneously during cell division or due to external factors like UV radiation or chemicals.