This isn’t about downloading videos for offline use but about background playback.
YouTube recently blocked the ability to play a video in the background (or with the screen turned off) unless you pay for premium. It just turns off the video if you leave the app, unlike other media on my iPhone.