It is used to disambiguate.
Say for example if you have a variable of the same name in the same (or outer) scope, something like this:
int SomeClass; //SomeClass is declared to be variable here
class SomeClass* GetSomeClass()
{
return _instanceOfSomeClass;
}
Without the class
keyword, the function declaration wouldn't make sense to the compiler. The class
keyword tells the compiler to ignore the variable declaration, and look for a class declaration.