When you put hot food in an airtight lunch box, the heat can't get enough space to escape and so the food stays warm for a long time.