"peevishness, offense at feeling slighted," 1580s, in phrase take the pet "take offense." Perhaps from pet (n.1) on a similar notion to that in American English that gets my goat, but the underlying notion is obscure, and the form of the original expression makes this doubtful. This word seems to have been originally a southern English term, while pet (n.1) was northern and Scottish.