The point is that the media were in a bubble where everyone they talked to had the same views as themselves.
But that is a totally different point than, and is actually logically incompatible with, the assertion that they privately believed that Trump _would_ win the election, but expressed otherwise to the public.