You've fallen victim to media spin. Farage did not claim this. In case you read the articles differently, Farage wasn't part of the "Leave campaign". He was part of the Leave.EU campaign. The media want to portray Farage as a hypocrite, so they write their articles to make it seem like he is. But understand the distinction between the two different campaigns, read the article carefully, and you'll see that the article doesn't actually say this.