The polls in the US were right though.  They had here up about 3% as of election night - and she ended up winning by about 2.5%.

She lost because of how the electoral collage votes break down.  But even there, less than 80K votes decided the race.  Those 80K votes (out of 200M) go the other way, and we have president clinton right now.