Religion (particularly Judeo-Christian) has a lot of issues with empirical historical / scientific claims, but one thing it was good at is it's culturally adaptive. A lot of the cultural tooling and support it provided both with community and with some of the core cultural ideas around family and children - life purpose and direction are probably good things for most people. Secularism does this pretty poorly for the average person and what people substitute for what's missing is often much worse.