Skin cells can turn cancerous due to a variety of factors, including prolonged exposure to ultraviolet (UV) radiation, genetic mutations, and the presence of harmful chemicals. The DNA in skin cells can become damaged, leading to uncontrolled cell growth and division. This uncontrolled growth results in the formation of tumors, which can be benign or malignant.