Cells become cancerous due to mutations in their DNA. These mutations can be inherited from parents or acquired due to environmental factors such as tobacco smoke, radiation, or infectious agents. Typically, cancer develops due to the accumulation of multiple mutations that affect cell growth and division.