In the run up to the last election Ukip & Farage were banging on about a referendum on the EU, no doubt to try & win votes. Cameron adopted it and put it in his election manifesto - to try & win votes hoping that it would never come to fruition. But, obviously - it did. Fast forward to where we are now.
That's how I remember it.
No doubt someone will correct me if I'm wrong