I think they calculated wrong and forgot to spend all the money. They mentioned that Cloud Services was unusually more profitable this quarter.
If Amazon reinvests into assets, that money isn't considered a loss. So it doesn't reduce profits. So when Amazon buys a video library those IPs are assets.
You only deduct spending that are expenses.
As Amazons business changes it might be harder to hide their profits in expenses.