How can «عُمَرَ» be accusative in one sentence and genitive in another?

Noun Case Classes: Type 3 — Diptote (Ghayr Munṣarif)