I do not know.
I think there could be two reasons.
My first assumption is that endings of the word can be different depending on whether the person speaking is a man or a woman. Like it can be seen in Ukrainian and Russian.
My second assumption is that the endings depend on whether the person that we talk to is a man or a woman. Which can be seen in Hebrew.