Why is a gradient displayed at the top and bottom of the video?

During the first seconds of a video YouTube displays some controls and branding:

To avoid confusing your customers with that information and to make your video look more professional, we automatically display a gradient effect at the top and the bottom of the video for a few seconds. This gradient hides YouTube controls and branding:

The gradient is black by default but you can customise it in the app preferences page: