Free secular societies don't care who is boffing who as long as all are consenting adults.
But theocracies have a shit fit about people doing gay stuff. God no likey the guy on guy action.
And secular totalitarians -- who make themselves into national gods -- need scapegoats and minorities to vilify. It keeps the sheeple from focusing on real issues, like civil liberties.