What is the meaning of Greenhouse in 'greenhouse effect'?

A greenhouse, or a glasshouse in a garden keeps the air inside warmer. Gardeners use greenhouses to grow fruit etc in cold climates. It gives its name to the greenhouse effect because greenhouse gases retain the sun's heat and keep the earth warm.