ref
late Middle English (in the senses ‘a blow, knock’ and ‘to strike’): imitative.
From papa(“dad”).
Onomatopoeic.