And frankly, it's absolutely worth it. You pay for something like Prime, and before they expanded it to include Video and Music, you were essentially paying for slightly faster delivery and less things to purchase upfront.
Costco's model is all about giving you access to the best VALUE. They do really sell very very close to wholesale prices and many things are sold at cost.
Will they ever be the size of Amazon or Walmart in revenues? Probably not. That's not their goal. By having a membership, they are mostly targeting a demographic with something above $0 spending money.
Costco is all about slow and sustainable growth, although who knows. Their target market is quickly dwindling so they will eventually need tor raise membership fees to increase revenue and profit.