Why do certain flavors just work together?

Why is it that some foods just taste better together? I’m sure some of it is learned.