Grammatical case has 2 different meanings across 1 category:
Noun
nouns or pronouns or adjectives (often marked by inflection) related in some way to other words in a sentence
A mode of inflection of a word dependent on its use, especially the syntactic function in a phrase.