The Spanish martillo (“hammer”) comes from the Latin malleus meaning the same. And from this Latin root malleus we get the English… malleable. So something that is malleable, changeable, is figuratively… hammerable.
We see that the Spanish m-rt-ll maps to the English m-ll.