The water radical anchors the meaning -
沾 is originally about water contact: getting wet, soaking up moisture, leaving a damp mark. From literal water-stains came metaphorical 'staining' (catching habits or disease) and 'touching' (only the lightest contact, like dipping a finger).