I have seen it too. This is for those who actually don’t use push notifications but get the warning. In our case we use push notifications. Without aps-environment entitlement they simply does not work.
As workaround for now we just do builds locally with Xcode 14.