I mean, you still need a truck to get the item to the store...
Delivery is actually more resource-efficient if the store isn't within walking distance of its customers. If instead of making 10 people get in their car and make a round trip to the store/warehouse, you put 10 packages in one vehicle and deliver to everyone in the same neighborhood with one trip, you're looking at an order of 90% less wasted emissions.