How did statisticians fail us so badly during this election season?

Real question. I would be so interested in reading a book about this. The results of this election surprised both sides (not just mine). I feel like in a few years there might be a great 99% Invisible episode about how we overlooked all these things yada yada yada.