All the IOs are floating at power up (or at reset).
Inside Init() digital IOs are programmed as input by default so they are floating until you fixe their state as output in setup().
If you want your IOs put in some known state at power up, you should put pullup or pulldown resistors on each pin.