The “greenhouse effect” means tents trap warm air during the day. The sun can pass through your tent fabric and heat up the air inside, but the warm air can't get out again. As a result, your tent gets warmer and warmer throughout the day, retaining that heat long into the night.