Here you go, YouTube video in safari pip.
That's because it's an embedded video. I think that embedded YouTube videos use the default Safari player, whereas videos viewed in the YouTube app or at youtube.com in Safari use Google's proprietary video player, which does not support PiP.
So right now you can only watch YouTube videos that are embedded with PiP, until when (or even if) Google decides to support the feature.