CO2 and N2 are inert gases that could appear anywhere; free oxygen in the atmosphere is what you’re really looking for. Oxygen can’t exist long term without being continuously replenished via photosynthesis.
Very cool freebie program from NASA. Interactive map of exoplanets.
http://eyes.nasa.gov/exoplanets/index.html
Even so, the same overall argument would seem to apply.