Well it's a very good example to show us all that there is a perfectly good reason why we go through all of this in our lifetime. If all the riches and blessing are just handed over to us on a silver platter, we are not thankful, we don't acknowledge Him, and we are prideful. Homosexuality is along for the ride.
However, God's mercy saves the day and drives our hearts back to Him.