This is, of course, a very unsatisfying ending for the audience which expects the characters to get out of their problems through dint of hard work and inspiration and not by divine providence.
The X-Men in their early issues had a god in a machine; a wheelchair machine to be specific. Professor X was just too doggone powerful, and when they got into a big battle with a major mutant he could just wave his magic wand and make everything all right:

And in the following issue, X-Men #3:

So of course by the following issue, the X-Men were getting a little too used to having the Prof pull their bacon from the fire:

At the end of that story, Professor X is injured by a bomb blast:

But it turns out to be all part of a larger plan:

I suspect this was plotted all along by Stan. I will have to read further in the series to see if Professor X used his brain-wiping abilities again.