The presence of a dog in the house is usually a deterent. If someone does try to break in, the dog will bark, alert the household and (often) scare off the intruder.
Several homes in my neighborhood were broken into a few years back. None had dogs in the house.