End screens occur at the end of a video for the last 5-20 seconds. They're similar to cards, in that they encourage the viewer to watch the next video, subscribe or move to you playlists. YouTube's algorithm measures engagement. If you can keep your viewers engaged, then you'll be boosted in rankings.