Original: The cosmic rays that arise in extrasolar astrophysical sources are primary cosmic rays; these primary cosmic rays can interact with interstellar matter to create secondary cosmic rays. The Sun also emits low energy cosmic rays associated with solar flares.
Simplified: Cosmic rays are not actually rays but particles that are moving very fast.