Do you mean "covering oneself" as in sleeping under sheets and/or blankets? Or do you mean pajamas?
As for why we do it, try /r/asksocialscience.