Etymology
Today it means: Expressing sudden pain or startlement. Full definition →
Onomatopoeic; compare ow, yowch, etc.
Etymology from Wiktionary, CC BY-SA 4.0.