The guy left his window unlocked. Which is exactly what I was getting at. Your house shouldn't be that easy to accidentally wander into.
New locks wouldn't have stopped that, but identifying the target before shooting at it would have. A flashlight an an once of sense would have prevented that.