Pretty much all religions provide a basis for a social belief system/set of principals and morals by which a society should be and behave. They often also provide the meaning to life. Organised religions, e.g. Christianity, then provide a regular means of contact to teach this, e.g. via church services, for people. Many people who need structure and security, or the answer to why they exist, seek this out. Others engage with it as a point of ego boosting (e.g. social figurehead within the religion) or power (leader) or money (albeit moreso historically). In summary it provides individuals with a major part of their life, livelihood and welbeing.
So, when these people learn of all the horrendous crap associated with THEIR religion, they either cannot, or refuse to, accept it as their religion teaches the perfect way to be and therefore cannot possibly be fallible. Or they're culpable in the deceit, abuse and hypocrasy. Or they can't face the idea of loosing their religion (and therefore life as they know it/want it) so choose to lie that everything is ok and good. Everyone who disagrees or opposes is a heathen and must be shut down or worse, killed.
To add, as they replied as I was typing; Infamousblt makes the good point that there are still good people within these societies, which is true of pretty much all societal groups; there are good and bad people in all of them.