«عُمَرَ» is a genitive muḍāf ilayh. Since «عُمَر» is diptote, its genitive ending is fatḥah rather than kasrah in this construction.
مَرَرْتُ بِعُمَرَ.
Translation: I passed by ʿUmar.
A visible fatḥah does not automatically mean accusative: determine the case from the syntactic role and governing relation.