Near the earth's surface, the adsorption peaks for water vapor partially overlap the absorption peaks for CO2, while there is less water vapor high in the atmosphere.
Separating the peaks creates global warming.