Whilst down material loses its insulating properties when it gets wet, the shell of many down jackets will be coated with Durable Water Repellent coatings (DWR) to offer some resistance to rain. You can also get fully waterproof down jackets that combine this coating with a waterproof membrane.