I believe Zetsu is under orders to help Obito and he told Zetsu to let him out. Madara wanted this so he can witness Rin's death firsthand and remove the thoughts of going back to Konoha from his head. Then he will be a loyal subordinate with not intentions of leaving and Madara can finally intrust his revival to him.