I'm guessing at some point, Minato told Yin Kurama, if he let him have access to his powers he would one day return him to his other half. They made a contract and that was that.
Or it could be something as simple as "Hey, it's that guy that's always mind controlling you and made us both end up in the Death God's stomach. Can you work with me so we can go kick his ass?"