Is the word "case" used in the same way in the following two sentences?

For English, a compositor will ordinarily have two such cases, the upper case containing the capitals and the lower case containing the small letters.

That was not the case.
different meanings