I suspect that it is as much about PR as anything else. Amazon probably has no qualms handing over the data per se. But they also realize that doing so without first putting up a 'fight' would look very bad.
But of course. Corporations are amoral entities. They do whatever it is that they calculate to yield the highest expected profit. They will do good things only insofar as it happens to coincide with what's most profitable (as is the case). If the most profitable course of action was to murder children and they could do it without hurting profits via breaking the law or getting bad PR, they would do it (as at any rate they do in places where committing atrocities is the unpunished, most profitable course of action).