I thought OneDrive asked for your credentials separately. Did you previously sign in to it, but remove it from startup?
That said, really dark pattern to enable stuff users have explicitly said no to. Microsoft really is a two-headed monster these days. Parts of Windows is really good, but then there's shit like this that just ruins it.