In late March, Amazon Home Services launched as a marketplace to connect customers with more than two million service offers across more than 700 professional services. The move was no surprise. Amazon wants to be a one-stop shop for consumers, and adding services is the obvious next step.

But Amazon’s method was surprising — and surprisingly smart. Instead of tackling the industry on its own, it partnered with TaskRabbit to launch the new platform.

This is a departure from Amazon’s usual practice of directly taking on competitors. The partnership was a strategic move, and it offers a lesson for entrepreneurs and business leaders.

A Service Platform Is a Natural Extension

Amazon’s foray into the services industry makes sense. Customers spend about four times more on services than they do on physical goods, so even if Amazon only takes a small percentage from each transaction, its revenue stream will be significant.

And the online services field is still a relatively open market. Angie’s List and TaskRabbit — arguably the biggest players — can’t match Amazon’s name recognition or customer base.

So why did Amazon partner with a smaller player instead of going it alone? It didn’t need TaskRabbit’s name recognition or platform. The e-commerce giant could have built its own database and driven others out of business, as it has done to so many competitors in the retail sector. Instead, Amazon recognized it could benefit from TaskRabbit’s unique strengths.

TaskRabbit Offers Strategic Benefits

For Amazon to hit the ground running, it needed not only a vast database of service providers, but also the certainty that customers would receive quality work from day one. Working with TaskRabbit meant Amazon didn’t have to start from scratch.

TaskRabbit provided Amazon with more than 30,000 service professionals who have passed background checks and collectively have hundreds of thousands of reviews. And in turn, Amazon brought its trusted platform to the deal.

But the partnership’s advantages go beyond Amazon’s credibility and TaskRabbit’s database of service professionals. By outsourcing the burden of dealing with service professionals to its partner, Amazon avoids getting into the business of managing providers directly.

Also, Amazon is avoiding a margin race to the bottom — as is happening with the competition between Lyft and Uber. TaskRabbit and Amazon Home Services can coexist and both make healthy margins while gaining credibility with consumers.

Amazon Still Has the Upper Hand

Amazon didn’t give up control when it partnered with TaskRabbit. Amazon functions as a huge lead generation tool for TaskRabbit and manages the demand side of the equation. In most cases, the partner controlling demand has the stronger position in a partnership.

This partnership also allows Amazon to focus on in-house synergy between its existing goods marketplace and its new services marketplace. Knowing what services people are using and how they’re using them allows Amazon to do a better job of providing goods people need and want.

Also, if Amazon Home Services doesn’t take off immediately, the partnership with TaskRabbit gives Amazon time to let its marketplace grow without spending resources building up its database.

Although its partnership with TaskRabbit represents a departure from the norm, Amazon has shown a deep understanding of the market and demonstrated an important lesson: Sometimes you can get more by sharing the pie than by competing for the biggest slice.

TX Zhuo is a managing partner of Karlin Ventures, an L.A.-based venture capital firm that focuses on early-stage enterprise software, e-commerce, and marketplaces.