Of disputed origin; the leading theory is that it is perhaps a shortened form of capitulāre, from caput (“head”).
Practice speaking and memorizing "cappa" and many other words and sentences in Latin.