Why did they think Jesus was "Messiah"?
What did he do which led them to think this?
The Messiah of Judaism was supposed to fulfil prophecy by establishing world peace, rebuilding the temple, etc. As Jesus didn't do these things, he does not qualify, he failed in his mission, . . .
But we don't know that was his mission. Some thought it was, but that was just their religious interpretation. The question to be answered is: Why did they think this?
There's virtually no quote of Jesus claiming to be "Messiah" or "Christ" -- the John 4:25-26 quote and famous Matthew 16:16-20 quote are both rejected by critical scholars as not being authentic Jesus quotes (they reflect later Church doctrine)..
Each of the gospel writers had their own interpretation what his mission was -- they don't agree, except that they identify him as "Messiah"/"Christ" and also "Son of God" -- but that's just about the title for him. And the many different Jewish factions disagreed among themselves what "the messiah" was supposed to do.
Was he "The Son of Man"? (Daniel 7:13)
The more common term applied to him was "Son of Man" which is not clear -- it appears to be some kind of conqueror-liberator who would vanquish the Romans or other oppressor(s). Jesus is quoted using this term, but -- in some of those cases he spoke not of himself, but about some separate cosmic figure who was to appear in the sky, at the End of the World, so there's confusion what "Son of Man" means in the Jesus quotes.
But such language could easily have just been words put into his mouth later by the 1st-century apocalyptic preachers/writers. I.e., it was probably
their idea to equate him with the "Son of Man" rather than anything he said. This explains why their "Son of Man" quotes are ambiguous.
The important question is: WHY did they choose to make Jesus "Messiah" or "Son of Man"? There's no record of anyone else being given such a title. There were various charlatans claiming to be "messiah" (and other titles), but no written record identifying them or confirming them as being or doing anything special, in contrast to Jesus who is identified in the gospels and epistles as "Christ" and "Son of Man" and "Son of God" and "Logos" and other titles. The only other historical person confirmed as "Messiah" was Bar-Kokhba, but even in his case there's no record of this until about 200 years after his death (in the Talmud).
So something singular, unique about Jesus is that he was proclaimed "Messiah" (and other titles) in writings very close to his time, while there was no other character proclaimed "Messiah" throughout those centuries (from about 200 BC up to 500 AD) in the written record, the written sources of that time (centuries earlier there had been a few called "Messiah": King David and King Cyrus e.g.) There was the occasional charlatan recognized by a few cult followers/fanatics, but none taken seriously enough to get recognized in any written record of the time.
It's what he DID that matters
not the title we attribute to him
So this alone tells us that Jesus must have done something singularly important or noteworthy, such that the "Messiah" title was given to him but to no one else. What was it that he did? The obvious answer, from the written sources of the time, is that he did the miracle acts. This certainly stood out and made him conspicuous, such that he would be acclaimed not only as "Messiah" but all those other titles which came to be attributed to him.
And of course some came to deify him, or attribute Divine status to him. The question is:
Why did they do this? So this is the importance of the "Messiah" idea -- it's not significant whether he did or didn't "qualify" or if he fell short of doing requirements someone expected -- Many thought he had done something so special that he must be "the Messiah" -- what could it have been that he did?
There were many phonies, messianic pretenders, who made "messianic" or other claims and tried to attract followers, and only a tiny handful of fools would take them seriously, while everyone else only laughed at them. Josephus reports some of them, and it's obvious from the accounts that none of them was able to perform any "mighty deeds" etc. such as they promised to do.
The Jewish and Hellenistic terms ("Messiah" and "Son of Man" and "Logos" etc.) were popular in the apocalyptic literature, where there was much symbolism and poetry and sensationalism to rally patriots around some Leader, soon to appear, who would smash the enemy -- Why would anyone think Jesus was this Leader?
Whatever such sentiment Jesus may have really attracted must have been inspired by something unusual about him. For such fantasies to be taken seriously by them and applied to Jesus requires that he must have done something very unusual -- what would that have been?
Again, the only explanation that makes sense is that he did in fact do the miracle acts, particularly the healing acts and his Resurrection, described in the gospel accounts. There's nothing else which could explain how they would think he was so special or had any such special status.
No, there had to be something unusual. But not about him leading an uprising to overthrow Rome, nor about assuming the throne, or getting himself crowned, holding a Royal Coronation Ball, or renaming the Library of Alexandria after himself, etc. (it's not that he was the first Donald Trump). What's more likely is that he had performed a vast number of miracle healings (something of substance), and this caused many to want him placed in power, like a King, and ideas like that increased to an extreme and even dangerous degree.
There had to be something unusual about him which caused some to think he was "messianic" in some way. Or also that he was to be "King of the Jews" -- this idea did get started somehow -- what's important is to explain how it started. I.e., what was there about Jesus which caused some to think he might be this "King"? It's easily answered if we just take it as fact what is repeated over and over in the accounts: He did miracle healings, on a large scale -- which was unprecedented. This made him stand out as something much different.
Were miracle-workers a dime-a-dozen "in those days"?
This is a pop-culture myth.
There were no other miracle healers -- and this is interesting, because scholars like Bart Ehrman and Dominic Crossan and others like to claim there were many other "faith" healers like Jesus, running around and healing people, so that Jesus was not special -- And yet this is false. It's not true that there were other miracle healers reported in the writings, in multiple sources near to the time they lived. Not Hanina Ben Dosa, not Apollonius of Tyana -- name your example -- the evidence is not there.
And the most conspicuous miracle was his Resurrection, which also was unique. There were no other cases of a historical figure resurrecting back to life, despite some pop-religion claims.
But, if we disregard the evidence and assume Jesus was not unique as having miracle power, then there's nothing that distinguishes him from so many others who were more likely candidates for "Messiah" than he was. Jesus had no official position at all -- not even priest. Why would he be taken for a "Messiah" unless he stood out in some way that was conspicuous? setting him apart from everyone else? It can't just be that he was a preacher, because there were hundreds of those, even thousands, and some were dissidents who were martyred as heroes.
So, it's most likely that Jesus did not claim to be "Messiah" or "King" but that these titles were attributed to him by someone, like apocalyptic preachers/writers, who were very numerous and very aggressive in promoting their hysterical warnings of the End Time and Last Judgment.