Unknown according to De Vaan. The old hypothesis deriving it from Proto-Indo-European *kwath₂ (“to ferment, become sour”) has the problem that *w isn't supposed to disappear in Latin (the expected outcome would start with qua- and not ca-). In this case, the cognates listed under *kweth₂- are perhaps loans from the same substrate source as the Latin term.