If a Pope clearly realizes that he is no longer physically, psychologically, and spiritually capable of handling the duties of his office, then he has a right and, under some circumstances, also an obligation to resign.
The prophet's mantle, ere his flight began, Dropt on the world--a sacred gift to man.