Conduction and convection both require some material substance to move heat from one place to another, and there's none of that between the sun and Earth.
The only way for thermal energy to move from place to place with nothing in between is by the process of radiation, and that's how it gets here from the sun.