The plebs only have themselves to blame for not electing the kind of leader they ideally wanted.
You know that doesn't work in the rest of the world either, right? Americans can vote all they like for presidents and congressmen and judges, they still don't get to vote on legislature to legalize oligopolies, they didn't get to vote on the Glass-Steagall Act being suspended or the Patriot Acts...
Democracy doesn't inherently let citizens have control over their country. Egypt is still rusty at the very idea of voting, let alone how long it takes a democratic process to take effect. I'm not saying letting their army control the government is a good idea, but it's not shocking that "let the guy we don't like run out the clock on a 4-year term" didn't sit well with them, either. Especially not now, when they have a taste for the bad habit of using coups to solve everything.