Just as every tree has branches that vary in lengths, every class has variations to the style of how you fight, how you interact, or how you explore called subclasses.
Just as the name suggests, a subclass is a subcategory of a class that expands on the base class by adding abilities that change how you might play the class normally, or that just expand upon the class itself.