I think they invest massively in accounting and legal and corrupt arrangements to avoid taxes, so it must simply be their desire. Their tax paperwork didn't accidentally end up $129m up instead of $3b down.
It's a while since they didn't make a profit, in large part because of AWS growing to currently north of a million an hour net profit on margins their retail side can't replicate.