For me, a dog is a great early warning system. Someone breaks in when I'm asleep, I want that extra 10 seconds to clear the fog, figure out what's going on and get prepared. If I'm not home, I'd hope the barking would scare any potential uninvited guest away. My Golden has a habit of barking at anyone and everyone that walks by the front windows or knocks on the door.