Muslimin and mushrikin have visible plural morphology. In a construction that embraces the members of the relevant group, they illustrate being general in expression.
Muslimin — a group or plurality of Muslims.
Mushrikin — a group or plurality of polytheists.
Plural grammar does not automatically mean unlimited application in every context. If a text addresses a particular community or carries a valid restriction, its actual scope must be read accordingly.