Kanimir is, as he often is, sitting in his library enjoying a book on magic and pondering theoretical innovation. He has an idea; he writes it down. It probably won't pan out, most of them don't, but it might.
"Well, right now we have a religion that earnestly believes that if you have sex with someone who possesses the same form of genitals as you you're going to be tortured forever after you die, and therefore if someone evinces attraction to the same gender one ought to electrocute them, because this will supposedly 'cure' it."
"...I'm gathering from tone that this will not affect it at all and the torture thing is not real."
"The former is due to a few miscellaneous lines in their primary religious text and the latter I have no idea."
"Miscellaneous religious and cultural leaders over the course of centuries-to-millenia."
"In this particular case mostly the teachings of a particularly focal religious figure to whom divinity is generally attributed."
"There are supposedly gods at home but they do not supposedly torture people for sex."