Why is it 0 when I press the button

pin 2 to button first leg and ground to second without resistor