sore nipples, not boobs

Why were my nipples incredibly sore for days to the point where water from the shower irritated them but the rest of my boobs were fine.