Unreal is made up of modules. Your MyGameplayTags
class inherits from a class that’s inside the GameplayTags module.
I highly recommend this video. The guy explains how projects are structured in Unreal.
Unreal Engine C++ Project Setup, From Scratch | Alex Forsythe