Actually, he was there as a candidate. Perhaps you’ll recall his “prayer” left at the wall was (of course, unexpectedly) “revealed” to the media.
Oh, I had forgotten that.
He was in campaign mode, playing up to Jews and Israelis as though he cared, only to set them up for a stab in the back, now that he’s been elected and has POWER.