Temperatures decrease (get cooler) with increasing altitude in the troposphere. Sunlight heats the ground, which in turn emits infrared radiation upward into the atmosphere. The IR energy heats the lower troposphere most, due to its proximity to the warm ground.
Original artwork by Windows to the Universe staff (Randy Russell).