When it comes to national security and intelligence analysis, Why are countries caught unaware by surprise?

When it comes to national security and intelligence analysis, Why are countries caught unaware by surprise? Please give specific examples with some past or current events,