Google gets money for showing ads and sponsored content on the search page. If you click on a site with Google ads or Google scripts, it gets more money and monetarizable PII. So its in their interest to prioritize sites with Google ads or Google services, but only Google staffers know exactly how the search algorithm works.
A few years ago they upranked all results on a few trusted domains, so many of those domains filled up with advertising and cheap copywritten content. They framed this as 'fighting misinformation.'
Small websites have small dollars?