We recognise the things we did wrong in the past so that we can avoid making the same mistakes in the future. Drama queens like to call this "guilt".
That's the idea anyway, there seems to be a never-ending supply of people determined to keep making the same mistakes over and over again.