Over a sinful lifestyle choice?
They are commanded to preach the word both “in season and out of season” no matter the consequence. Sodomy isn’t the only sin that pastors will preach against, but it is the one in which the sinners demand punishment for those who dare to speak against it, especially when done in the name of the Lord.
To be silent over this lifestyle choice would be to defy God himself. It doesn’t always end well, look what happened to John the Baptist when he preached against adultery, but it is what we are all commanded to do.