How do random memories work? As in, why does your brain/memory keep these random memories that seem to have no real value? Yesterday while emptying the kitchen garbage I remembered a time when amm came to visit us in Edmonton. And when she walked into the house she told me she could smell our garbage and we needed to change it.

Why does my memory feel that this is a significant event to store for future reference?