How old is your dog? After 5-6 months they should not need to go out in the night. Either you need to train them not to or take them the vet to check if they have bladder problems
Some dogs just like to go out and be outside. My dog likes to go out and just stand in the middle of the yard for an hour at 2am. Her mom is the same way.