In رَأَيْتُ مُسْلِمَاتٍ and مَرَرْتُ بِمُسْلِمَاتٍ, the noun has the same ending but different cases.

Noun Case Classes: Type 2 — Sound Feminine Plural