Well, that worked out well for them...
But it worked at the time, Cameron didn't want to give us the Brexit vote and he certainly didn't want us to vote to leave, he just wanted to stop people voting UKIP instead of tory that bit worked a bit too well because he would have preferred to have a coalition government at the time so he wouldn't be able to give us the Brexit vote but instead he ended up with a majority so had to give us the Brexit vote which then went the wrong way for him so he then stepped down because the result didn't go his way.