cosmic rays are some form of electromagnetic radiation, they are actually subatomic particles travelling at significant fractions of the speed of light. Primarily atomic nuclei (hydrogen and helium nuclei are the most common, but nuclei of all naturally occurring elements have been detected), whatever accelerates these nuclei to such high energies, does not appear to have the same effect on electrons which make up less than 1% of all cosmic rays.