Mutated antigens form when there are genetic alterations in the cancer cell's DNA. These mutations can be caused by various factors such as environmental influences, inherited genetic mutations, or errors in DNA replication. As a result, the altered DNA sequence codes for abnormal proteins that the immune system can recognize as foreign.