The story
Uncertain, but perhaps from being a variety of ice cream popular in and associated with Chicago in which multiple flavors were compressed into one brick; the result also resembles a color of building brick which was common in Chicago at the time.
Etymology from Wiktionary, CC BY-SA 4.0.