Memories evoke emotions, good and bad, which define your feelings toward someone. You keep objects and pictures because you want to remember those feelings.
Life is constantly changing. People you love come and go. If you can hide away an object that triggers a memory, then you’ve captured it. It will never change. It’s yours whenever you want it, as long as your mind continues to store your memory.