Separate the four options into two simple groups, particles versus photons, and see which group mesons belong to.
Since mesons need a high energy particle collision to be produced, and cosmic ray impacts on the atmosphere provide exactly that, cosmic rays are the environment where mesons are actually found.