Original: Despite their cancer-causing properties, gamma rays are also used to treat some types of cancer, since the rays kill cancer cells also.
Simplified: Gamma rays can also go through the skin to kill cells, such as cancerous cells. Doctors can use machines which produce gamma rays in hospitals to treat people with some types of cancer.