Question about Mastery

When someone first unlocks mastery, do they just unlock it generally and later on they unlock stuff like speed mastery, strength mastery, endurance mastery, ect

Or is it when they unlock mastery for the first time they automatically unlock it in a certain area