I think it's pretty simple.

If you are well educated, you will learn how logical arguments, evidence, etc works. You will realize that religion's argument is pitiful, and you won't believe in it.

The problem is, when you believe in religion so blindly, that it stops you from looking at the world logically, drawing connections based on logic.

Of course there is a middle path, when you are religious, and are able to understand everything you need to about the world.