Why is al-ʿilmi genitive in the example?

Al-Mafʿūl Lahu: Expressing the Reason for an Action