Defense can afford to do that since the profit margin is higher and the risks much higher as well.
I'm not saying Amazon can't treat their workers as decent human beings, just that on the benefits/compensation front they have different constraints.
We used to treat them even better, of course.