The reason you like the taste of beer is in large part because your brain has learned to associate that taste with good things happening (the alcohol feeling).
Same with coffee, it's bitter, objectively should taste bad, but you learn to like it.
It's the same process
Anyone who has quit smoking will tell you that the habit is the hardest part about quitting, not the physical addiction.
Many years ago when I smoked - yup, sure did. I loved the entire experience, except maybe going outside in the middle of winter.