The primary cause of sunburn cells is exposure to UV radiation, specifically UVB rays. UVB radiation directly damages the DNA in skin cells, leading to the formation of thymine dimers. The cell's inability to repair this damage triggers apoptosis, resulting in the formation of sunburn cells.