Next he rejects the rejoinder made by the Jews. First, the Evangelist mentions this rejoinder; and secondly, our Lord's rejection of it (v 49).
In their response the Jews charge Christ with two things: first, that he is a Samaritan, when they say, Are we not right in saying that you are a Samaritan? Secondly, that he has a demon, when they add, and have a demon?
In saying, Are we not right? we can infer that they often reproached Christ this way. In fact, concerning the second, that he has a demon, we read in Matthew, "It is only by Beelzebul, the prince of demons, that he casts out demons" ...(12:24). But this is the only place where it is recorded that they called him a Samaritan, although they probably said it often: for many of the things that were said and done about Christ and by Christ were not written in the Gospels, as it says below (21:25).
Two reasons can be given why the Jews said this about Christ. First, because the Samaritans were hateful to the people of Israel, for when the ten tribes were led into captivity, they took their land: "For Jews have no dealings with Samaritans" (4:9). Thus, because Christ reproved the Jews, they believed that he did it out of hatred, so that they regarded him as a Samaritan, an adversary, as it were. Another reason was that the Samaritans observed the Jewish rites in some things and not in others. Therefore, the Jews, seeing that Christ observed the law in some matters and broke it in others, for example, the law of the Sabbath, called him a Samaritan.
Again, there are two reasons why they said he had a demon. First, because they did not attribute the miracles he worked, and the thoughts he revealed, to a divine power in Christ; rather, they suspected that he did these things by some demonic art. Thus they said: "It is only by Beelzebul, the prince of demons, that he casts out demons" (Mt 12:24). The other reason was based on the fact that his words exceeded human understanding, such as his statements that God was his Father, and that he had come down from heaven. And when uneducated people hear such things they usually regard them as diabolical. Accordingly, they believed that Christ spoke as one possessed by a demon: "Many of them said, 'he has a demon, and he is mad; why listen to him?'" (10:20). Furthermore, they said these things in an attempt to accuse him of sin, to dispute what he had said: "Which of you convicts me of sin?"
Source: Commentary on John