Fact 1: absorbing sunlight causes objects to heat. 
Fact 2: Sunlight, for instant, takes a full 8 minutes to cross the 150 million km to our windows.
Absorbing something that takes 8 minutes to cross to Earth causes objects to heat.