ref
natural utterance: first recorded in Middle English.
Probably of imitative origin. Compare hey, eh.