Rav Ḥanan says: Wine was created in the world only to comfort mourners in their distress, and to reward the wicked in this world so that they will have no reward left in the World-to-Come, as it is stated: “Give strong drink to him that is ready to perish, and wine to the bitter of soul” (Proverbs 31:6). “Him that is ready to perish” is referring to the wicked, who will perish from this world, while “the bitter of soul” denotes mourners.
Rava raises a contradiction: It is written: “And wine that gladdens the heart of man” (Psalms 104:15). The word for gladdens could be read as yeshamaḥ, meaning that wine makes one crazy, but we read it as yesamaḥ, gladdens the heart. The matter can be explained as follows: If one merits and drinks a moderate amount the wine gladdens him [mesameḥo], whereas if he does not merit and drinks excessively it makes him crazy [meshamemehu]. And that is what Rava meant when he said: Wine and fragrant spices have made me wise; that is to say, the controlled drinking of wine is beneficial to the drinker.