Science and technology has tried to offer an alternative to religion by making a god out of human reason, but that didn't work out too well.
Technology isn't fulfilling its promise of unlimited progress and solving every problem through technology. With the Enlightenment and its aftermath, there already was a general loss of confidence in the Western religions.
Science and technology have been embarrassed by two world wars, many smaller ones, and the spread of weapons that could destroy humanity. As a result, there is some loss of confidence in the great achievements of technology.