Answer
In an excited gas, light is emitted from electrons moving between discrete, well-defined energy levels in separated atoms. This results in some distinct frequencies of light.
Work Step by Step
When a solid is excited, the formerly well-defined energy levels are blended together due to interactions among atoms in close contact. The formerly distinct frequencies are smudged together.
This is discussed on page 567-568.