How to share Photos.app videos to YouTube directly?
While such an extension doesn't exist natively in macOS, the desired functionality can be added with the support of a 3rd party app.

Video Uploader for YouTube is a macOS app which lets you easily upload your videos to YouTube.

The app also installs a Finder and Photos.app extension which lets you upload to YouTube directly from Finder or from within the Photos app.