How New Zealand is avoiding hundreds of exploding whale corpses

Why do they explode in the first place?