Most governments around that time were religion-centric anyway, that was part of the focus of protestantism, that the King was the direct link to God, rather than the Pope.
As I said before, the moment something like this creates a hierarchical structure, then power becomes more of a concern than goodwill, justice, understanding or peace. There's nothing wrong with having a faith, there's nothing wrong with believing homosexuality is 'wrong', but there is something wrong when a single man, be he Priest, Immam, Ayatollah, Prophet, Sage or any other title, feels that he is entitled to interpret the 'word of God' and dictate it to the group, because this is not interpretation, it is indoctrination, and just because one person does not like homosexuality, does not give him the right to form a group based on that hatred, for example.
Religion and power do not mix any better than anything else and power, it will always be subject to the whims, interpretations and prejudices of those who do the 'interpreting', much in the same way as 'what the founding fathers intended' is frequently re-interpreted depending on the position of the person doing the interpretation.
Take Evolution as an example, when Darwin announced Evolution, the Church was fine with it, the Catholic church has accepted Evolution as a given, after all, who is to say that isn't exactly what God intended, but there is power in Denial, money to be earned from those who are fearful or ignorant, and, sadly, ignorance and prejudice are some of the main leverage tools of religion, especially in poorer, more deprived areas of the world. Creationism was never about 'proving science wrong', it was about creating a power base for a 'new' style of religion, purely for the benefit of those at the top. Scientology is the Prime example of it in many ways, that's why it's hated so vehemently by other religions, because it displays the worst side of Hierarchical religion without all the stained glass windows and Gothic architecture to get in the way.