An externalstimulus such as music can actually block some of the internal stimuli trying to reach the brain such as fatigue-related messages from muscles and organs.
The combination of the mental activity and the externalstimulus is believed to aid in reprocessing traumatic memories in ways that reduce their pain and damage to a person's life.