Question: why ymir went with reiner?
Answer: Reiner promised to care for Historia. Ymir felt in her heart the walled world was likely doomed. So it makes sense that she took steps on both sides of the battle to give Historia a chance.