He was tricked by Paul von Hindenburg chief of staff at the time and other top generals to step down. Was told it would be easier to negotiate favorable terms and he would be called back once terms were achieved...
Let me mention that this Great War series on YouTube by Indy Neidell is an excellent set of historical videos. I regularly watch them when I have time.