Since you’ve been asleep for hours, your body has not gotten water for 6-9 hours. Water is needed for the filtration of waste products and fluid balance. Two big glasses of water offset the fluid deficit you had from sleeping. Studies on kids (study 1, study 2) show that drinking more water increases their ability to complete mental tasks. Make sure your brain is not dehydrated at the beginning of the day already.