It is extremely remarkable, and demonstrates the enormous strength of character Jesus had. No doubt it would have been a help that he was the Son of God and that he was in close communication with his Father. But the power that he was given as the consequence of his sonship would have greatly magnified the temptation to misuse it. So, it is really wonderful that he remained so strong throughout his life.
Hebrews 4:15 For we do not have a high priest who is unable to sympathize with our weaknesses, but one who in every respect has been tempted as we are, yet without sin.