Sound is a longitudinal wave that carries energy. Sound needs a medium to propagate through (this means that sound cannot propagate in vacuum).
The medium usually determines the speed of the wave travelling through it.
As the sound waves travel in a medium, this medium begins to decrease, therefore, the energy of the sound also decreases.