A pun on the word humerus. It is the inner condyle of the humerus; or, to speak untechnically, the knob, or enlarged end of the bone terminating where the ulnar nerve is exposed at the elbow; the crazy bone. A knock on this bone at the elbow produces a painful sensation.
Source: Dictionary of Phrase and Fable, E. Cobham Brewer, 1894
More on Funny Bone from Fact Monster: