tl;dw: The powers-that-be in Pakistan -- the army and whichever political dynasty the army favors that day -- routinely overrule the popular vote because they don't believe that democracy will always spit out the best candidate. This is partly due to arrogance but also because the institutions that are supposed to keep a check on harmful populism in Pakistan are broken or corrupt. These powers-that-be have decided that IK is bad for Pakistan (twist: they're probably right about this; IK is a religious fundamentalist and a giveaway socialist in a country that is broke) and have invoked "special measures" to keep his name off the ballot or the ballot away from the people. Understandably, this has angered the people who have taken to the streets.