It's pretty common and doctors don't know what exactly causes it, it may be ketosis is part of it, most people go into a mild state of ketosis every night. Also, whenever glucose is low, there is a physiological response to temporarily become insulin resistant in order to preserve glucose for the brain, this is not a pathological type of insulin resistance.