Think about the direction that the heat is coming from the earth's surface, after being heated by sunlight that has passed through the CO2 unimpeded, because sunlight is a higher wavelength than infrared, which CO2 absorbs and then re-radiates..
Sunlight comes onto the earth at higher...