The story
Of uncertain origin; originally British slang of the 1910s. In a letter, dated 6 October 1944, J. R. R. Tolkien mentions a contemporary of his at Oxford University T.W. Earp, calling him "the original twerp"; but no corroborating evidence for this etymology has come to light. Other suggestions include: a clipping of Antwerp (“type of racing pigeon that flew between Antwerp and London”); the onomatopoeic twirp (“imitation of the sound of a bird”); a dialectal variant of dwarf (compare Middle English dwerf); Welsh twp (“a fool”).
Etymology from Wiktionary, CC BY-SA 4.0.