Ultimately from Ancient Greek μαστίχη (mastíkhē). Doublet of מַסְטִיק (mástik). This etymology is incomplete. You can help Wiktionary by elaborating on the origins of this term. via..?
מַסְטִיקָא • (mastíka) ?