Cancer cells arise due to genetic mutations that affect the regulatory mechanisms controlling cell growth and division. These mutations can be inherited or acquired through exposure to carcinogens such as tobacco smoke, ultraviolet radiation, and certain chemicals. The accumulation of genetic alterations in oncogenes and tumor suppressor genes leads to the transformation of normal cells into cancerous ones.