Our Lord prepared the woman to receive his spiritual teaching by giving her an occasion to question him. First, her question is given. Secondly, her reason for asking it (v 9).
Here we should point out that our Lord, when asking the woman for a drink, had in mind more a spiritual drink than a merely physical one. But the woman, not yet understanding about such a spiritual drink, thought only of a physical drink. So she responds: How is it that you, being a Jew, ask me, a woman of Samaria, for a drink? For Christ was a Jew, because it was promised that he would be from Judah: "The scepter will... not be taken away from Judah... until he who is to be sent comes" (Gn 49:10); and he was born from Judah: "It is evident that our Lord came from Judah" (Heb 7:14). The woman knew that Christ was Jewish from the way he dressed: for as Numbers (15:37) says, the Lord commanded the Jews to wear tassels on the corners of their garments, and put a violet cord on each tassel, so that they could be distinguished from other people.
Then the reason for this question is given: either by the Evangelist, as the Gloss says, or by the woman herself, as Chrysostom says; the reason being, the Jews had nothing to do with Samaritans.
Apropos of this, we should note that, as mentioned in 2 Kings, it was on account of their sins that the people of Israel, i.e., of the ten tribes, who were worshipping idols, were captured by the king of the Assyrians, and led as captives into Babylonia. Then, so that Samaria would not remain unpopulated, the king gathered people from various nations and forced them to live there. While they were there, the Lord sent lions and other wild beasts to trouble them; he did this to show that he let the Jews be captured because of their sins, and not because of any lack in his own power. When news of their trouble reached the Assyrian king and he was informed that this was happening because these people were not observing the rites of the God of that territory, he sent them a priest of the Jews who would teach them God's law as found in the law of Moses. This is why, although these people were not Jewish, they came to observe the Mosaic law. However, along with their worship of the true God, they also worshipped idols, paid no attention to the prophets, and referred to themselves as Samaritans, from the city of Samaria which was built on a hill called Somer (1 Kgs 16:24). After the Jews returned to Jerusalem from their captivity, the Samaritans were a constant source of trouble, and as we read in Ezra, interfered with their building of the temple and the city. Although the Jews did not mix with other people, they especially avoided these Samaritans and would have nothing to do with them. And this is what we read: Jews had nothing to do with the Samaritans. He does not say that the Samaritans do not associate with Jews, for they would have gladly done so and have cooperated with them. But the Jews rebuffed them in keeping with what is said in Deuteronomy (7:2): "Do not make agreements with them."
If it was not lawful for the Jews to associate with Samaritans, why did God ask a Samaritan woman for a drink? One might answer, as Chrysostom does, that the Lord asked her because he knew that she would not give him the drink. But this is not an adequate answer, because one who asks what is not lawful is not free from sin—not to mention the scandal—even though what he asks for is not given to him. So we should say, as we find in Matthew (12:8): "The Son of Man is Lord even of the sabbath." Thus, as Lord of the law, he was able to use or not use the law and its observances and legalities as it seemed suitable to him. And because the time was near when the nations would be called to the faith, he associated with those nations.
Source: Commentary on John