Related with the derived meaning. This usage is probably a calque from Grk. onagros, Lat. onager (so HJ), but it is worth noting that the meaning ‘a mechanical device’ (in particular, ‘a part of the battering ram’) is attested already for Akk. imēru (CAD I 114–5).