Original: Although there is some heat loss due to conduction, there is a net increase in energy (and therefore temperature) inside the greenhouse.
Simplified: It is because the suns heat warms the plants and soil (dirt) inside the greenhouse and they stay warm through the night, because the heat can not escape.