[ Arduino UNO ] Button state change

Can someone explain me this?

Congratulations, you've just discovered the joys of floating pins. (That's a search term, in case you missed it.)