Why is Khālidin genitive?

Ism al-Tafḍīl: Formation, Comparison, Agreement and Parsing