Intuition. My psychiatrist told me our senses were built to feel when we were in danger. Animals listen to it..we don't. Your dog sensed it.