I think he was right (talking about documents)
Words have gender, people have sex. Case refers to capital or "small" letters.
We do not know if documents in Russia have been corrupted to the same extent as here, where they serve the demented gender ideology. My guess is that they ask the respondent to indicate his sex, not his gender.
Case is also a grammatical term applied to nouns, indicating subject, object, possessive, and so on.