He also might have resigned so not to have all these gay political outfits to have some fuel to try to out all these closeted Republcians. If he had fought this that would have been a risk.
IF he were a dem, he would not resign and the dems would be viciously accusing his opponent.