The preacher lost the spirit because he turned away from the message he was preaching and partook in the things he preached against. His guilt and shame left him unfit for his calling. Thus, he walked away.