Step-Down convertor. Why does the input voltage go to the output
It's possible that the ground made contact slightly later so only the V5 line is connected to the board but and the ground if floating. Then it's not surprising that the voltage equalized across the entire board because there is only a single connection.

When you connect the ground of the oscilloscope to the ground of the board it closes the circuit.