The auto-play feature on YouTube enables a 'lean back' experience and keeps videos playing without you having to select a new video when the video that you're watching finishes.
You can choose to turn off the auto-play feature at any time using the toggle option available on the watch page.