Why Are Professing Christians Becoming Atheists?

Many professing Christians are leaving the faith, and becoming atheists. Why? Could it be the doctrine they are learning?