RueLaLa for example is actually run by GSI Commerce, the largest end to end ecommerce provider. They have existing distribution contracts with hundreds of companies.
When a product reaches its end of life period, GSI Commerce either buys it from the retailer and adds it to RueLaLa or the product goes into "overflow" where it is moved to RueLaLa but GSICommerce now takes a more significant percentage of the income.
The reason it is so profitable is because no additional infrastructure nor purchases are needed. GSICommerce keeps the old inventory in the same warehouse, reclassifies it as RueLaLa material, and removes it from the client website.
I'd definitely be curious as to how complicated those arrangements get.
When starting out they will typically have to guarantee a certain volume to get the pricing they need and eat the product they can't sell. So it does require a fair bit of capital to get started which is why they typically start out with clearance inventory where the wholesale price is so reduced.
To further pad this shortcoming in the early stages Gilt was invitation only, and had a lot of control of the influx of new customers to the site, which helped two-fold: promote the air of exclusivity and buffer for the smaller initial supplies/vendors from being out of stock too quickly. This also promotes traffic to the site as items, as they do today, sell out in popular sizes/prices fast, your users are logging in sooner/more frequently to grab a "deal".
He goes into sourcing product etc.