Boredom. Dogs become bored easily when they have nothing to do, and will make their own fun.
Barking at every sound they hear, joining in with the neighbor Dogs in a group Barking session, or just barking to let out energy are all reasons behind night barking. Loneliness.