Its easy, your troops have surrend, because not food enough or rebellion in the own city, i mean, they surrend the castle to the enemy without any resistance.
I have seen that happen when there is misery on the castle/city, so they dont need prepare the Attack (it use to be 2 days at least if they prepare the Attack)