The shrine's head priest transfers the deity to the Kanamara Boat portable shrine (boat-shaped loaded with a phallus) かなまら舟神輿
Before the portable shrine is taken out to be paraded around town, the god of the shrine must be transferred to it. This is what the head priest is doing.