The word "souvenir" comes from the French word "souvenir," which means "to remember" or "to recall." It's derived from the Latin verb "subvenire," meaning "to come to the aid of, to assist, to remember."
So, a souvenir is literally something that helps you remember a place or an event.