AFAIK, it was originally introduced in the 19th century to deflect sword slashes from the crown of the head. In 1914, it merely was retained for tradition, and rather quickly removed - you would be hard-pressed to find Pickelhauben after, say, late 1915.