Secondary mutations can develop through a process called clonal evolution, where cancer cells accumulate genetic changes over time. These changes can be a result of the cancer's inherent genetic instability or as an adaptive response to environmental pressures, such as treatment.