Not all sperm whales produce ambergris, and it's not clear why some do and others don't. It's a rare occurrence, which adds to the substance's mystique and value. When whales do produce it, the ambergris must be expelled into the ocean, where it begins its journey, possibly ending up on a distant shore.