The unexpected result of the general election is just another case of voters punishing governments for their handling of the economy.