Delay in motion detection or someone ringing the bell

Why is the delay on motion or video door bell being rung… A few seconds us OK but sometimes it takes minutes?