I'm curious about what you're imagining here. How exactly do you think science causes people to leave religion (maybe look up what the word actually means first)?
I can understand (and have witnessed) new or different knowledge and understanding shifting people's religious beliefs and practices, but that isn't necessarily due to science (or even factually accurate). People can leave religion for flawed or irrational reasons just as they can join them for flawed or irrational reasons.
Anyway, in my experience, people tend to move away from religion slowly over time, even without really noticing for a long time. This is especially true when those beliefs and religion came from their childhood upbringing. Of course, that doesn't automatically mean they move away from religion entirely, and certainly not some form of abstract spirituality, even if you don't perceive, recognise or accept that.