Back-formation from caggey (“war”), from Old Irish cocad.
cagg (verbal noun caggey, past participle caggit)