From Arabic كَعْك (kaʕk). The similarity with English cake is coincidental (or if anything due to highly remote relation).
kagħak m (collective, singulative kagħka, paucal kagħkiet)