Amazon ships fast to retain customers over brick and mortar competitors. At this point, logistics costs are baked in to seller fees (ie item price).
Prime fees were always a free money stream for Amazon to direct in to risky bets/build-outs rather than ongoing operations, iirc multiple billion USD per month.