This question already has an answer here:
Here is how I understand it:
DNA replication is not 100% perfect and error can happen, this error can be good(evolution) or bad(cancer properties). But its not the only source of cancer cells - DNA can be damaged by environment, and in rare cases it can receive cancer properties.
Am I correct?