Sleep helps the brain associate emotions with memories.
“Impairing the animals' sleep or blocking the activity of the neurons that were activated during the response uncoupled the visual cue from the negative experience, but the animals still exhibited fear, suggesting that when sleep was disrupted after an event that caused fear, the fear may not be linked to the event but instead may manifest as general anxiety.”