In a scientific context, it makes nerve cells or neurons reconnected to each other. When a person's sleeping, his or her brain's glymphatic system clears out the waste accumulated in this internal organ. That is the reason why we think clearer upon waking up.