TJ is a grab bag of expensive and inexpensive items often justified by a difference in lifestyles, e.g foodies and hipsters. They're a different target demographic than Walmart and Costco, most of their inventory is comprised of their own brand, and they control their entire supply chain. Most shoppers at TJs have half empty carts or use baskets.
Quite the fundamental difference.