Proverbs 31:5

Lest they drink, and forget the law, and pervert the judgment of any of the afflicted.

Wine is a special danger to rulers and judges because it can cause them to forget the law and pervert the judgment due to the afflicted. Intoxicating drink confuses the mind and turns a person away from just conduct. Wine and strong drink make the way easier for Satan to lead people into sin. Judges must therefore abstain from intoxicants so they can judge with clear minds and uphold God's law.