Answer: the gases in the atmosphere cannot necessarily absorb the radiation given from the sun directly, so the earth's surface gets heated directly first and then reradiated back to the sky.
1.6m questions
2.0m answers