Mutations in DNA sequences can occur due to various factors such as environmental influences, errors during DNA replication, or through inherited genetic defects. These mutations can alter the normal function of genes and may contribute to the development of cancer.