Both skin cells and cancerous cells divide rapidly. Why are cancerous cells harmful but skin cells are not?

Cancerous cells divide uncontrollably due to mutations in genes that regulate the cell cycle, leading to the formation of tumors and the potential for metastasis. Skin cells, although dividing rapidly, follow a regulated cycle for repair and renewal without causing harm.