interrogative adverb; sandhi contraction of kuto + ettha
Analysis. kuto (from what, whence) + ettha (here, in this matter) — a fusion interrogative combining source (kuto) with localization (ettha), used to ask about the ground or reason of something.
Etymology. kuto is the ablative of ka (who, what), from the Indo-European root *kwo-, also seen in English who, where, Latin quō. ettha is an adverbial form of the demonstrative etad (this); cognate with Sanskrit etat and the Latin hic (this). The contraction shows Pali's fondness for fusing interrogatives into single words.
Meanings from the Digital Pāḷi Dictionary; morphology and etymology by Claude.
Lite mode — plain HTML for e-readers and old browsers. Full version