Going to bed with wet hair may lead to scalp infections due to the moist environment.
If you have dandruff, sleeping with wet hair can worsen the situation.
Apart from skin-related issues, sleeping with wet hair may trigger respiratory problems. The pillow gets wet from the hair, which makes it easier for the mould to grow. It may irritate one's airways and cause discomfort.