Unexpected to say the least.
The last time a Pope resigned was 700 years ago. That Pope never wanted to be Pope but was more or less drafted. He resigned when it became more or less self-evident that he was not suited for the job.
Pope Benedict is not such a person. Was it unexpected to everyone?