Google treats links from trusted sites as recommendations. A few links from relevant, quality sites are worth more than many unrelated ones. Bought or spammy links can harm your site.
The best way to earn natural backlinks is to create useful content and tools that others want to share.