The honey, sugar, and pineapple in pineapple-baked ham help to act as a foil for the salty ham. It also aids the caramelization process on the ham's surface, enhancing flavor.