They just have strong umami flavours which come from naturally occurring glutamate. Kinda like how MSG makes food taste better. And they release sugars during the cooking for process which adds to the intense and complex flavours. Also smell makes up a good portion of taste perception,and garlic is fragrant
Latest Answers