It is as a possessive adjective. As in "her car" or "her apple". It's not a TRUE adjective, so some modern textbooks call them determiners instead, but functionally this class of possessives is closer to adjectives than nouns.