The magnetic field deflects particles from the Solar Wind, whereas the atmosphere blocks a lot of the radiation as I understand it.
The solar wind != cosmic radiation.