The law of the conservation of energy requires that we account for all of the energy received by the Earth.
Energy is conserved.
Think of a automobile engine for example. Each of these motions is brought about by a transfer of energy. The atmosphere operates very much like a heat engine in an automobile. In the atmosphere, however, the energy provided by the sun is distributed around the Earth by winds, precipitation, and evaporation processes. Heat energy is transmitted through processes of Conduction, Convection, and Radiation .