system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: Why do we randomly remember stupid and embarrassing things we did when we were younger even though it makes us feel awful?

It always leaves you with this lingering residual feeling just like when it happened. Whether its remembering something stupid you said in class, or a time when you were really insecure about something. Its almost always without warning, and only makes you feel worse. What gives?
gpt
From a common-sense standpoint, there are plenty of reasons to remember things that make you feel bad. The most obvious: Remembering those things, and the bad feelings they caused, helps you remember not to do those things again.