All the sexual sins basically fall under the umbrella of the prohibition on adultery. It's not so much that killing the adulterers and whores and homosexuals and beastiality people is the punishment, it's more like the idea is by killing them God will stop cursing your whole nation. It's also not considerred murder to put them to death because their sins are worthy of death, or as the Bible explains, "their blood is upon their own head". The prescriptions for sins aren't really punishments, they're more or less cleansing agents. The idea is sins like cheating, whoredom (having multiple sex partners, also called fornication), homosexuality, beastiality, transexuality, feminism, etc. are adulteries that are so grievous that the only real way to cleanse them is by blood, by literally killing the ones committing them, or else the sin becomes normalized, wickedness spreads across the land, and in response curses from God himself start to waste the land and the people. Compare this to the slight adulteries of masturbation or giving a woman the eye of lust, coming into contact with a woman on her period, and other minor sexual sins which are still adutleries as Jesus points out, but these are can be cleansed by water and abstinence and repentance and prayer.
In an ultimate sense say one commits adultery and does not truly repent to Jesus, well it's not like they'll get away with their lies against man and God and be spared punishment. No adulterer escapes the Lake of Fire so even if justice is miscarried on the old dying Earth full of adulterers and the whores, they will not escape the real ultimate punishment for their sins, which is to spend eternity burning tormented and screaming with and at all their evil lovers about how wrong they were and how they screwed eachother over for an eternity to imperishable flames for but a few minutes of worldly sensuality and wicked betrayals. Yea in fact they will not escape even punishment right here on Earth, for all the curse of their doings will catch up to them most certainly it is seen that the whores own worst enemies often are eachother. So be of good cheer our God knows everything and is a perfect God and perfectly just, he will save us from our enemies by destroying the adulterers and their master Satan and cast them into the Lake of Fire forever and ever, and this same God will even give life eternal in his Kingdom to the virgins, starting first with the male virgins his most beloved, and true married one man and one woman people who stay together for life, and he will even save those those that repented of their adulteries and surrendered to him genuinely, PRAISE JESUS!