First off, Amazon never lost a billion dollars in a single year.
More importantly, Amazon could have been profitable for much of the time. Amazon was losing money because they were taking the profits from they successful ventures and pouring it into new ventures.
With Uber, what change do they make right now to switch to a very profitable company? Amazon had that option, Uber does not.