This was a change in the way Android was set up to provide users with more granular control over permissions, and to allow developers to decide when to ask for permission rather than when the first notification channel was created.
https://developer.android.com/develop/ui/views/notifications/notification-permission
Automatic granting of permissions is, as far as I know, not possible, which makes sense because it would overrule the user's wishes.