Because electronic transitions for single atoms is not the only possible source of electromagnetic radiation. There are lots of sources. The sun happens to emit radiation primarily by the Black body phenomenon -- that is, any object that is hot will emit a continuum of radiation easily predictable by its temperature.