The simple answer is that they were never in the faith.

They went out from us, but they were not of us; for if they had been of us, they would have continued with us. But they went out, that it might become plain that they all are not of us.

1 John 2:19

But there is more that can be said.

Often the reason why those in ministry leadership positions ‘depart’ from the faith is because they have fallen in love with something else; something in the world finally exposed the god they’ve been seeking for, even in Christianity. Demas, who was a fellow missionary with the Apostle Paul, is a Biblical example of what is still very common today (Compare Col 4:14 with 2 Tim 4:10). As one seminary professor warned the class one day, the three F’s of pastoral failure are finances, females, and fame—all three in the top ten gods of this world that the true God warned, and even commanded, us against. Theft, licentiousness, and moving on to ‘greater’ things, are often the sins that precede the public dissent from the faith and then become the new normal.

Another reason why well trained ‘Christians’ often walk away from Christianity is that they have come to love theological intrigue more than they have come to love theological Truth. Many lesser-trained Christians are often guilty of the same. We love what might be true more than we love what is revealed to be true. We find doubt more intriguing than assurance; or we love “testing everything” more than we love “holding fast to what is true” (1 Thess 5:21). The Apostles of Jesus warned us against following new ideas instead of old Truth (Col 2:8, 18).

Those who ‘depart’ from the faith had never joined the faith. They might have joined themselves to Christianity and persuaded many for a long time, but their reasons for joining themselves to Christianity were never because they had been born again (1 Jo 3:9). They might have joined out of conservative tradition handed down by their parents, they might have joined out of spiritual affirmation by their peers, they might have joined out of personal spirituality that warmed their hearts for some time, they might have joined by a false presentation of what Christianity is, but the reality is, that as obvious as their external association to Christianity was, so obvious their internal resistance to Christ was. It might not have been evident all at once, but eventually even they no longer believed the lie of their testimony of faith.

How do we not fall under the same deception? Believe the Scriptures which you claim to follow, know the LORD whom you claim to believe, and turn away from the evil that you are attracted to.

Stating the same in different words,

Be not wise in your own eyes;
fear the LORD, and
turn away from evil.

Proverbs 3:7