They interpret their religion and their religious texts to ultimately support whatever opinion they want to be able to justify. He wanted to be able to accept and support his daughter so he found a way for his religion to let him do that.
That’s the crux of the problem. Want to subjugate a group, no problem. want genital mutilation no worries. want to discriminate against a segment of the population, cool cool; I can make my god confirm every shitty thing I have in my heart. Luckily sometimes it works the other way.
As seen in all communist regimes and to a lesser degree most non communist ones too.