Why is the red shift of the EMS due to Doppler and not attenuation? Are they the same thing?

As space stretches out a beam of light, its wavelength increases, and its energy decreases, thus shifting light from distant stars red. Is the Doppler Effect and attenuation (loss of energy) the same thing?
4 answers 4