53 But because John also was the treasurer of baptism, the Lord of the stewardship came to him to receive from him the keys of the house of reconciliation. For John used to wash away in common water the blemishes of sins; that bodies might become meet for the garment of the Spirit, given by our Lord. Therefore, because the Spirit was with the Son, He came to John to receive from him baptism, that He might mingle with the visible waters the invisible Spirit; that they whose bodies should feel the moistening of the water, their souls should feel the gift of the Spirit; that even as the bodies outwardly feel the pouring of the water upon them, so the souls inwardly may feel the pouring of the Spirit upon them.
Accordingly, even us our Lord when He was baptised, was clothed in baptism and carried baptism with Him, so also when He was presented in the Temple, He put on prophecy and priesthood, and went forth bearing the purity of the priesthood upon His pure members, and bearing the words of prophecy in His wondrous ears. For when Simeon was sanctifying the body of the Child who sanctifies all, that body received the priesthood in its sanctification. And again, when Simeon was prophesying over Him, prophecy quickly entered the hearing of the Child. For if John leaped in the womb and perceived the voice of the Mother of our Lord, how much more should our Lord have heard in the Temple? For lo! It was because of Him that John knew (so as) to hear in the womb.
Source: On Our Lord (New Advent)