They are examples of traditional retail businesses that have adjusted well to the new world of online shopping.
They are also benefitting from another trend, which is that big-box stores in general are outlasting smaller stores. Another example would be Home Depot and Lowes thriving while smaller hardware stores fail. Shopping at a big box store is often more convenient than making multiple trips to smaller or more specialized retailers.