* Kindle books (especially self-published ones) should have better margins than real books. Kindle grew 70% YoY while real books only grew 5%.
* A growing chunk of their revenue is from AWS, and software-as-a-service certainly has higher margins than mail order.
So there's an unlimited amount of buyers willing to buy and every time you cut the time you hold the inventory in half people shall buy twice as much?
Furthermore it gets better. Frequently if you have good credit, you can take a shipment, sell it, and then pay later. This gives you float that you can use for things like paying the overhead of keeping unpopular items in stock. (Remember, Amazon makes substantial money both from having things that are hard to find elsewhere, and by selling commodity items in bulk.)
If a retailer wants to double its revenue, there are two basic options. Double your margins. Or double your volume by cutting the time you hold inventory in half. Amazon has aggressively gone for the second approach, and is glad to cut its margin in half in return for tripling sales.
Your "comparable companies" are not in the consumer retail business. And if they tried to maintain their margins while competing head on with brick and mortar commodity retail stores, they'd go out of business.