The usual explanation is just "too much wickedness" or some variation. The incident with the crowd trying to rape the 2 angels in the form of 2 dudes precipitates the destruction, but there's a laundry list. But the act of sodomy isn't named after Gomorrah, right? Most sodomy laws are specifically about men having non-procreative sex, and that being illegal.
Again, it's a layered allegory about with who and when to have sex.