Emotions were an early form of communication between human beings (and other species as well). It was valuable to survival if one member of a species could express danger in a way that another could be recognize.
Emotion helps weight observation memory, making it easier to retrieve memories which carry more emotion.
Learning is more efficiently transmitted through emotion because emotion was one of the earliest forms of communication. Learning transmitted through language does not carry the same impact.