Pin issue

As dhenry is trying to explain, doing that turns on the internal pull-up, which effectively connects the on-board LED to 5V via about a 50K resistor.