The digital pins of the Arduino can only source 40mA, the 5V rail can source much more than that depending on supply. The LED blew up because you did not have a current limiting resistor. See here
ACD
- 2.4k
- 12
- 27