nigger gpt gives his opinion:
The difference in English pronouns stems from the evolution of the language over time. Historically, English had a more complex system of grammatical cases, which influenced how pronouns were used. For males, "he" is the subject form, "him" is the object form, and "his" is the possessive. For females, "she" is the subject form, "her" serves both as the object form and possessive determiner, and "hers" is the possessive pronoun (used independently).
The reason "her" does double duty as both object and possessive determiner is partly due to the simplification of English grammar over time. In earlier forms of English, there were more distinct endings and forms for words, but many of these have been merged or dropped. So, while "him" and "his" remained distinct, "her" ended up serving both functions, likely as a result of these grammatical shifts and simplifications.