It seems to me that, for many people, religion is more of a social phenomenon than an intellectual phenomenon. (For me personally, it's the opposite.) So what factors draw someone to be part of a religious group when that person harbors significant doubt about that group's teachings?