A spotlight shines light in one direction. The sun shines light in all directions, which is limited in its extent by the opacity of the atmosphere and certain limits to human perspective across a plane earth. Since the light does not propagate infinitely, due to the fact that the atmosphere is not perfectly transparent, its light is limited to a spot of light upon the plane earth. Hence, the sun is casting a spotlight without itself literally casting light in only one direction.