Things that smell good, but taste bad

Why is that a thing? How can I love the smell of coffee, but hate the taste of it? Does it work the other way around, too? What's your thing that you love to smell / taste but hate the other sensation of?