Where exactly do you think Amazon's profits are coming from? Over half of their profit comes from AWS, and the retail side does not appear to have substantially different margins than brick and mortar retailers (~3% net margin).
That's gross margin, not net margin. It's not free to do the logistics to actually get you your order, either keeping warehouses and paying for shipping and handling, or physically maintaining and staffing a storefront to sell the product.