Sleep drunkenness is one of the potential side effects of sleeping medicine. It causes confusion and grogginess.