Because iron is highly malleable. The arrangement of atoms in
iron allows them to slide alongside each other without breaking,
therefore, iron does not break when being hammered (or otherwise
reshaped, e.g. by bending)
View page
That's a physical change. Assuming the nail is made of iron
(Fe), when you bend it, you simply change its shape. You don't
change the fact that it's still iron.