Wine has a lot of aromatic compounds which are in other types of food as well, like ones associated with pepper and bread. But these aromatics are not unique to one type of food. It sounds silly that wine can taste like Chocolate or Cherry when those are not at all part of the process. But it makes sense when we consider how interconnected food really is.
If you like this, have a look at our MinuteFood channel: https://www.youtube.com/c/MINUTEFOOD