Due to their proximity to death. It seems natural to assume that as people get older and closer to death, they become more interested in what happens after they die, which is something religions have answers to it may be that people become more religious, Closer to death because they find the thought of afterlife, more comforting than the thought of themselves, just turning into dust