Why genitive kasrah on afḍali here?

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