The political class kept pushing that meme in the hopes of getting the vote to go their way. Last polling had said Remain would win 52-48.
Voters fooled em
I think it was manipulated to depress the Brexit vote.
We can expect the same kind of polls in the Hillary-Trump race.