The set of *-MgRoleManagementDirectoryRole cmdlets correspond to newer implementation, the so-called "Unified RBAC API". Take a look at the note in this article for example: https://learn.microsoft.com/en-us/graph/api/resources/directoryrole?view=graph-rest-1.0
Microsoft recommends that you use the unified RBAC API instead of this API. The unified RBAC API provides more functionality and flexibility. For more information, see unifiedRoleDefinition resource type.
The underlying role definitions/templates are the same, but the "new" API covers more scenarios, and it's the preferred method. You should focus your studies on it.
And yes, roles (templates) can be activated. It's a way for Microsoft to minimize the overhead of having 100+ Entra roles...