The main goal of link building is to move your website up in the rankings. Quality backlinks are considered a signal to search bots that your resource is relevant to the query and trustworthy.
A strong link profile serves as proof that the content on your pages is valuable. It causes them to appear higher in the SERP.