This is hard to answer, since we don't know how YouTube generated all the
versions of this video.
Even if we assume that the original video that was uploaded to YouTube
was 4K, we still don't know which algorithm was used to downscale
it to 760p and how much computer power was YouTube prepared to
allocate to this operation (if we take into account the enormous
daily upload of videos).
The conclusion must be that the algorithm that is used on your computer
by your video driver simply gives better results than the one used by
YouTube. Even if the same algorithm was used, YouTube might have
parametered it to run faster with worse results than yours.
Also, as YouTube didn't use exactly the same resolution as your
screen, what you see at 760p is the original 4K video scaled
to 760p by YouTube and then scaled again to your screen. Each conversion
will lose some quality.
When you're watching 4K video, it's only scaled once to your
screen, so with a lesser loss of quality.