Old English ham, hom (originally denoting the back of the knee), from a Germanic base meaning ‘be crooked’. In the late 15th century the term came to denote the back of the thigh, hence the thigh or hock of an animal.
Also a bad actor.
Relevant?