person A: My dog kept barking and waking me up
person B: I know how annoying that can be.  I love dogs but they certainly get do annoying things at times.
person A: I still do not know why he was barking.
person B: Maybe there was something outside or maybe he just wanted attention.   Dogs behavior can be hard to figure out sometimes.   Good Luck!