Understanding and application

Why are both nouns in بِخُلُقٍ حَسَنٍ genitive?

Conveying Knowledge, Respect, Steadfastness, Taqwa, and Good Character (Hadith 139–145)