Chefs like to pit salty against sweet foods because 1) our mouths like the blend and 2) it provides a contrast to thicker, richer foods like chocolate or caramel in the same way a pickle provides a cleansing contrast to heavy meats.