Eczema causes white patches as the affected skin is irritated and forms a patch that is lighter in pigment than the surrounding skin.