Religion became a popular way to mitigate the fear caused by the mystery of the forces of nature.
We do not fear the forces of nature as much as our species once did, because we understand those forces better.