If storing goods in a warehouse is bad, since it

If storing goods in a warehouse is bad, since it increases inventory carrying costs, why are the number and size of warehouses increasing in the U.S.?