They do it because they have childhood memories of church being a comforting, perhaps awe-inspiring, place that seemed to them like a refuge from all that is dangerous and wrong with the world.
They then make a logical leap and imagine that church will be the same kind of place for their own children.