Just as a nail is magnetized by beating on it, an iron ship is beat upon in its manufacture, making it a permanent magnet.
(a nail; by beating; on it) (an iron ship; is beat; upon; L:in its manufacture)
a nail an iron ship
by beating is beat
on it
upon L:in its manufacture