As @thorninmud explained, there is actually a physiological component to this behavior. Since it is physiological, one might speculate on why that capability evolved. The question I come up with is how to long term memories of bad situations help us? How do long term memories of good situations help us?
I suspect that if we were to remember the bad stuff more, we’d be under a constant higher level of stress, which would kill us earlier than if we had less stress in our lives. Good memories calm us and make us feel good. Bad memories—not so much.
These days, my memory for anything in the past is for shit. I can remember the general outlines, but very few specifics. But back when I had a memory, it wasn’t that much different. The few specific memories I had tended to be good ones. I just forgot the bad stuff.
Even now, I do it with things that should have been impressed in my hippocampus. A few years ago, I was in the first and only deadly serious depression of my life. This will probably sound weird, but all I really remember is a faint sense of being ready to die. Mostly I remember what the depression gave me, and it gave me enormous gifts.
I am truly grateful that I had that experience. There is so much I can understand now that I couldn’t understand before. I feel my emotions much more deeply than I did before. I can talk to people who have been in great pain from a position of having experienced the same. I do remember the darkness a bit, but mostly now it’s a story I tell. I’m glad the darkness has gone, but if I had a choice to avoid it entirely, I don’t think I would change it.
I do all this without even trying. I’m not trying to forget the bad. If anything, I’m trying to preserve the memory. Even so, it is the good parts that remain. Who even knew good could come out of experiences like that, but if you look at one of my recent questions, you’ll see stories from all kinds of people about what they have learned from their illnesses. I don’t know if any talk about negative learnings.