The story
John Camden Hotten's Slang Dictionary (1873) states: "In the mining camps, and rough parts generally, a white shirt is called a biled^([sic]) shirt to distinguish it from the usual woollen garment, which cannot be boiled."
Etymology from Wiktionary, CC BY-SA 4.0.