Uber Technologies Inc. spent heavily to lure drivers back in the second quarter, which resulted in a wider loss than expected and raises doubts about the reliability of its labor model long-term. Shares declined as much as 6 per cent in extended trading.

The loss before interest, tax and other expenses was US$509 million in the period that ended in June, Uber said in a statement Wednesday. That’s wider than the prior quarter but narrower than a year earlier. Analysts expected a loss of US$325 million, according to an average of analysts’ estimates compiled by Bloomberg.

Uber said the loss will be less than US$100 million in the third quarter and that gross bookings will be US$22 billion to US$24 billion. The forecast is about in line with analysts’ estimates. Uber cautioned that a wider outbreak of the delta variant could change the results.

“We invested in recovery by investing in drivers, and we made strong progress,” Uber Chief Executive Officer Dara Khosrowshahi said in a statement.

Expectations for Uber were already lessened Wednesday after Lyft Inc., the second-largest U.S. ride-hailing company, reported a weak forecast for the third quarter. Both stocks declined during trading. Lyft did prove, however, that its business can be profitable, at least when overlooking stock-based compensation and other costs. Lyft turned its first adjusted profit in the second quarter. Uber said it’ll generate a quarterly adjusted profit by the end of the year.

Uber has been using the pandemic as an opportunity to expand further beyond rides. The San Francisco-based company placed a big bet on freight with the US$2.25 billion purchase of Transplace last month. It also moved into grocery and alcohol delivery through acquisitions, added package delivery and struck a partnership with GoPuff to ferry convenience store items.

“What we’re looking for is continued expansion beyond food,” said Ron Josey, an analyst at JMP Securities. “The battleground that’s developing is to get anything delivered within an hour or two.”

Uber has been delivering meals from restaurants since 2014, but the pandemic dramatically accelerated growth. Gross bookings from delivery orders in the second quarter nearly doubled from the same period last year to US$12.9 billion. Growth was muted compared with the first quarter. “The hyper growth is likely over,” Mandeep Singh, an analyst at Bloomberg Intelligence, wrote in July.

Second-quarter sales doubled from a year earlier to US$3.93 billion, beating analysts’ estimates. The number of people using an Uber service was 101 million in the second quarter, in line with estimates.

Uber posted its first net profit as a public company in the second quarter. Income of US$1.1 billion was driven in large part by Uber’s stock in Didi Global Inc., China’s largest ride-hailing company which went public in June. Since then, the shares have declined 30 per cent after Beijing launched a probe into the company and removed Didi from Chinese app stores.

Challenges in the ride-hailing business persist. Many drivers quit earlier in the pandemic when demand evaporated and over concerns for their own health. In recent months, vaccines have brought riders back, but the return of workers hasn’t kept pace. Uber said in April it would spend US$250 million to get more drivers on the road by doling out bonuses and other incentives. Now, the spread of the delta variant creates a new, unpredictable problem for the transportation business.