text: If you sleep with wet hair it attracts allergens in the air.  If you have allergies you become More susceptible to them becoming aggravated because the wet hair attracts the dander(depending on the kind of allergy you have).  About the headaches, not so sure, have you ever gotten a sinus infection and your head was banging?  Did you also have wet hair at the time?