The answer to the missing detail of your sentence is: Greenhouse effect. A closed car with the windows rolled up heats up on sunny days because of the greenhouse effect. The sun's rays enters through your car windows. Some of the objects like car seats will also absorb the heat and when they release the heat, it doesn't go out of your window. The heat's flow will only be inside your car and therefore the temperature rises.