Because the Prophet (peace and blessings be upon him), when he descended in Mina, spent the night at al-Mahsub. لأن النبي عليه الصلاة والسلام لما نزل في منى بات بالمحصب
a place called al-Mahsub
So when it was the last part of the night, he ordered his companions to depart, then he descended to the Sacred Mosque. فلما كان في آخر الليل أمر أصحابه بالرحيل ثم نزل الى المسجد الحرام