The statement was made by the PM maybe because he was certain that BJP is coming to power in Karnataka. But he was lying then as he is lying now. The people of Karnataka chose Congress + JD(S) as their government, once again rejecting the BJP. In fact, in many by-elections held, BJP has seen back-to-back losses given their failure to live up to their promised.
Read more here
Image Courtesy: Financial Express