The Wisdom behind every rule came from God Almighty is to avoid human beings harm and damage and make their life her and hereafter successful . (The Prophet conveys the message from Allah to allow the good acts and to forbid the evils acts) Sura 7, Verse 157.
Allah (SWT) mentioned in Quran : Remember (Prophet) Lut , We granted him prophet hood and knowledge and We saved him from the people who practiced evil and filthy deeds. (Sura 17, Verse 74).
What wisdom can be more than the Wisdom of Allah?