We need to reconcile this statement with another statement of Jesus. "I tell you the truth, no one can enter the kingdom of God unless he is born of water and the Spirit."
There is a tension here that is not easily resolved, which is why the Church leaves the fate of infants who die without baptism as an open question.
God has bound salvation to the sacrament of Baptism, but he himself is not bound by his sacraments.