This is a limitation of the Microsoft Graph API.
1. The interface returns only Built-in roles.
Roles of type "Custom" are ignored.
2. The interface returns only activated roles.
Reference:
https://docs.microsoft.com/en-us/graph/api/directoryrole-list
A role will be activated automatically when the first member is added.