The sentence uses a hypothetical situation (Maryam treating people as if she is better than they are), and in such cases, we use the subjunctive mood, which requires the verb "were" instead of "is" or "was" when expressing unreal or hypothetical conditions.