The devil was simply tormenting this man. That is what pride can do to someone who is, otherwise, intelligent. At the peak of his glory, he is foolishly attending to non issues. Humility is very advantageous in obvious ways we can comprehend and also in deeper ways.
Pride is a sneaky, destructive monster.