That happens in any language with declensions. I mean, look at a table of Latin declensions, and depending of the declension and number, some cases have different endings, some cases don't.
Anyway, it's interesting that in the European languages that lost grammatical case, the pronouns are only words that keep them.
Anyway, it's interesting that in the European languages that lost grammatical case, the pronouns are only words that keep them.