It's already been said that Hashi gained control/obtained Kurama. Then Mito sealed it inside herself, so that while fighting Madara, he didn't have to waste chakra on keeping Kurama under control.
It's common sense.
I agree, the question was what would mito be helping with in the situation where Hash beat madara then sealed Kurama, she helped deal with a berserking Kurama in that situation. I was not saying thats what happened.
It either went Hash captured Kurama, Mito sealed him, Hash beats Madara
Or Hash beat madara, Kurama breaks lose, Hash and mito seal Kurama
But the question with the first is how do you seal Kurama and deal with Madara at the same time, As other people have stated, it was not been shown once that a shinobi, even a Uzumaki can seal Kurama inside themselves by themselves, Hash had to help in some way, and also If hes still fighting Madara, how do you stop him from stopping the sealing process. This is why some people think the 2nd way is more plausible because it it removed madara from the equation! It can be still concidered aid while fighting madara even after he was beat because it was indeed madara who brought Kurama to the battle!