Twilight Sparkle wasn't expecting Sombra to be there when she woke up in her cage, not that she was expecting the cage in the first place.
But even if she had guessed correctly on those two outcomes, the conversation that followed was unexpected. Especially his views on ruler-ship.