Why arduino can fry?

Becasue the DC motor will have a very low resistance, and the AVR will exceed its 40mA maximum rating trying to drive it.