Why turkey has the same name as Turkey
"to strike sharply," 1719, probably of imitative origin. The noun is from 1737. The word in out of whack (1885) is perhaps the slang meaning "share, just portion" (1785), which may be from the notion of the blow that divides, or the rap of the auctioneer's hammer.
[probably echoic; in second verb sense, the use of whacks, ''any form of force,'' is attested among Chicago gunmen in 1932]