The reason that this tends to lower prices for consumers is that these innovations rarely stay confined to the companies that invent them. If this lowers costs for amazon to fulfill orders, then these techniques tend to get adopted by their competitors.
And once adopted by competitors, when everyone's margins have increased, these companies do compete on price.
This process doesn't happen immediately but it does happen.