Microsoft has been trying to optimize Windows as of late, offering performance improvements and introducing suggested feature additions, but things are still a work in progress. Case in point, ...
Microsoft confirmed a BITS service bug has been slowing Windows 11 shutdowns for months. You can fix it now with June's optional update.