Your dog might have spotted an intruder and are trying to alert you. During heat season, dogs get restless at night as they try to locate a mate. Your dog may also be asking for a potty break.