one theory i read was that Jesus on seeing that the servants/slaves had only water he insisted that they were given wine.hence he changed the water into wine forr them.over the following years this changed into a miracle