It has been an unbroken convention for decades now, to appoint the senior-most judge of the supreme court as the CJI.
who is appointed the chief justice of india
the senior-most judge of the supreme court