one, the body makes certain hormones called counterregulatory hormones, which work against the action of insulin. Second, the liver releases
glucose that it has stored in anticipation of the energy you need when you awake. Don't get freaked out, DP is a normal human body process.
So, what can one do to control DP? Cut out late night before bedtime snacking. Are you on insulin? If you take insulin injections, it could be that the effect of insulin you took is waning.