Taken directly from Microsoft:

https://docs.microsoft.com/en-ca/microsoft-365/solutions/manage-creation-of-groups?view=o365-worldwide

Users who can create groups need to have Azure AD P1 licenses.

...