I/O input reading random

Yes, electrical signal is needed for a proper reading.

I understood the 2nd part - there is no external part supplying a voltage - so you rely on the internal pullup to supply that voltage.