What is the grammatical role of -hā in «مثلها»?

At-Tamyīz: Clarifying Quantities and Sentence Relations