Because YouTube uses adaptive bitrate streaming, videos may appear lower quality at first but they will quickly switch to the highest possible quality after a few seconds.
Note: Not all videos on YouTube are available in HD. Videos recorded in SD will play in the same quality it was recorded. If the video does not buffer at playback speed, the video will be downgraded to a lower quality allowing for smoother playback.