Ṭalabi is genitive after lām in jiʾtu li-ṭalabi l-ʿilmi.

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