Jesus could have been king of the Jews in a very earthly sense if he only would have prayed for permissiom from God to assist him fighting his way out of it. However, the Scripture needed to be fulfilled. Jesus cared about what God wanted more than what he wanted for himself.
Matthew 26
52But Jesus said to him, “Put your sword in its place, for all who take the sword will perish by the sword.
53Or do you think that I cannot now
pray to My Father, and He will provide Me with more than twelve legions of angels? 54How then could the Scriptures be fulfilled, that it must happen thus?”