it's a tenderizer. pineapple is a fruit that actually tenderizes. enzymes found in pineapple (and kiwis and papayas, too) actually break down proteins, which in the case of carrot cake, results in a more moist cake.