YouTube, in a way, is just like Google and other search engines (yep, YouTube is one of the most used sites as a search engine)! Just like any other search engine, there are many factors that come into account in its algorithm as it decides which videos rank on which position for a given keyword.
Although I myself have never had access to the algorithm itself (and even if I had, I probably wouldn’t understand nada), there is a general understanding...