There is a whole business dedicated to creating the flavors of grocery store foods. Working with phantom aromas or aroma-taste interactions, scientists discovered that consumers link "ham" with salt. Simply adding a ham-like fragrance or flavour to a cuisine might cause your brain to interpret it as saltier than it is. The same idea applies to the aroma of vanilla, which many associate with sweetness.