Above, we saw John bear witness to Christ as he was being questioned on matters concerning himself; here, on matters concerning his office. Four things are set forth: first, those who question him; secondly, their questions; thirdly, his answer, in which he bore witness; and fourthly, the place where all this happened.
His interrogators were Pharisees. Hence he says, Now these men had been sent from the Pharisees. According to Origen, what is being said from this point on describes a different testimony given by John; and further, those who were sent from the Pharisees are not the same as tho...se priests and Levites sent by the generality of the Jews, but others who were specifically sent by the Pharisees. And according to this it says: Now these men had been sent, not by the Jews, as the priests and Levites had been, but were others, from the Pharisees. So he says about this that because the priests and Levites were educated and respectful, they ask John humbly and respectfully whether he is the Messiah, or Elijah, or the Prophet. But these others, who were from the Pharisees, according to their name "separated" and importunate, used disdainful language. Thus they asked him, Why then do you baptize, if you are not the Messiah, nor Elijah, nor the Prophet?
But according to others, such as Gregory, Chrysostom, and Augustine, these Pharisees are the same priests and Levites who had been sent by the Jews. For there was among the Jews a certain sect which was separated from the others by reason of its external cult; and for this reason its members were called Pharisees, i.e., "divided." In this sect there were some priests and Levites, and some of the people. And so, in order that the delegates [to John] might possess a greater authority, they sent priests and Levites, who were Pharisees, thus furnishing them with the dignity of a priestly caste and with religious authority.
The Evangelist adds, these men had been sent from the Pharisees, to disclose, first, the reason why they asked about John's baptizing, which was not why they were sent. It is as though he were saying: They were sent to ask John who he was. But they asked, Why do you baptize? because they were from the Pharisees, whose religion was being challenged. Secondly, as Gregory says, in order to show with what intention they asked John, "Who are you?" (1:19). For the Pharisees, more than all the others, showed themselves crafty and insulting to Christ. Thus they said of him: "He casts out devils by Beelzebub, the prince of devils" (Mt 12:24). Further, they consulted with the Herodians on how to trap Jesus in his speech (Mt 22:15). And so in saying that these men had been sent from the Pharisees, he shows that they were disrespectful and were questioning him out of envy.
Source: Commentary on John