Non church attendance doesn’t mean that people have stopped or becoming less religious … they just don’t find a need to go to a big expensive building managed by people who all tell them they’re doing everything wrong and will burn in hell after they die … unless they announce their devotion (and give money) and they’ll be promised passage to heaven.
The only reason religions and religious organizations exist is for themselves and their power and more people are recognizing that.
People will always find meaning in life, especially as they grow, develop and accumulate more knowledge and understanding from many sources. We don’t need 3,000 year old teachings from illiterate desert goat herders to tell us how to live a good moral life.