I think it was to seal Aizen or such. I remember Urahara saying that Ichigo and the rest helped it make it easier for him to seal him.