Then he shows that there is no reason why they should be disturbed. First, he recalls the command given to them by Moses; secondly, he states their customary behavior; and thirdly, he presents an argument based on the first two.
The command of Moses was about circumcision; so he says: Therefore, i.e., to signify my works, Moses gave you circumcision. For circumcision was given as a sign, as we read, "it will be a sign of the covenant between me and you" (Gn 17:11). For it signified Christ. This is the reason why it was always done on the genital organ, because Christ was to descend, in his hu...man nature, from Abraham; and Christ is the one who spiritually circumcises us, i.e., both in mind and body. Or, it was done to the genital organ because it was given in opposition to original sin.
We do not find it explicitly stated that Moses gave circumcision, unless in Exodus (12:44): "Every slave who is bought shall be circumcised." And although Moses did tell them to circumcise, he was not the one who established this practice, because he was not the first one to receive the command to circumcise; this was Abraham, as we see from Genesis (17:10).
Now it was the custom among the Jews to circumcise on the sabbath. And this is what he says: you circumcise on the sabbath day. They did this because Abraham was told that a boy should be circumcised on the eighth day: "He circumcised him on the eighth day, as God had commanded him" (Gn 21:4). On the other hand, they were told by Moses not to do any work on the sabbath. But it sometimes happened that the eighth day was a sabbath. And so, in circumcising a boy on that day, they were breaking a command of Moses for a command of the patriarchs.
Source: Commentary on John