The big part of this answer is, because people don't know the future at all, even one second into the future.
The earth is reasonably stable. Is seems that this and that will happen. But we don't know for sure. If we did, we would always be able to avoid things like car crashes, Fukushima, train and plane crashes, and almost everything else that goes wrong and harms a person. People, therefore, look for something to give them peace. It's religion.

Yes. People want to realize their dreams with religion. People love to believe in dreams. Religions offer people eternal paradise. People go after a paradise instead of researching about immortality. Things that were unknown in the past were much more. Now, with science, humanity knows more. We can now explain many things that were not explained in the past. We explain nature events through science. The gods do not punish us for nature events. But even if it is so known, people prefer to follow a dream.
But the real problem is that people are not interested in science. They do not follow scientific developments. The whole problem is that people do not develop themselves.