Why does the emission spectrum of an element consist of discrete wavelengths

It is photons emmitted as electron drop from one discrete orbit to a lower energy orbit.