According to Flavius Josephus, a famous Jewish Historian of the First Century in his book "Antiquities of the Jews" only a very small and marginal faction of the Essenes
would not marry. They lived in monastery-like caves and had no outdoor life. The greater part of the Essenes would marry just like any other Jew and would interact publicly with the larger community. John the Immerser aka John Baptist was of the kind to interact with the Jews in general. And so was Jesus. Hence what Jesus underwent under John Baptist at the Jordan River was his mikveh prior to his wedding in Cana of the Galilee. Otherwise, he could not be "ordained" into the Rabbinate, as a Teacher could not act as a single man. Paul attested to that in I Timothy 3:2.