Thanks for reaching out to Microsoft Q&A.
This is because User and group license assignments are managed through the Microsoft 365 Admin Center. For more information on how to assign or unassign licenses to users and groups, see this article: - Assign or unassign licenses for users in the Microsoft 365 admin center
Reference Document : https://learn.microsoft.com/en-us/entra/fundamentals/licensing
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.