Or more likely, Jesus was an eminent rabbi of the era, that oral stories expanded for hundreds of years, until he became a literal avatar of a god.
Or maybe he was a fraudster like another magician of the time - Simon Magus, who is mentioned in the Bible. Simon was an escape artist, and had a levitation illusion. That’s not far from water to wine or walking on water.