This is actually not true. My parents used to own a hardware store, and we were quite competitive on the pricing of most things. It’s mostly Wal-Mart propaganda that they’re “so much cheaper”, at least for things we sold.
Here’s how that works. Wal-Mart maintains a list of items that are considered “high visibility”. Stuff that people really notice the price of, for whatever reason. Wal-Mart put a lot of marketing research into this list, because those are the items that they sell at a loss. Giving people the impression that their prices are “so cheap”. Think 60-watt GE soft white bulbs, I promise you Wally sold those cheaper than we did because we weren’t selling at a loss like they were. The rest of their store… well if it was actually the same item, it usually wasn’t noticeably cheaper (have to make some allowance for the garbage on their shelves that we refused to stock).
And speaking of items that weren’t actually the same item, I have a story. One day one of our regular customers came over to me, visibly agitated. Holding a 12 pack of glue sticks for crafting. Asks me if the price is right, it was $3.49. I check the cost code, looks fine, normal margin. He says, “Wal-Mart has a five pack of these for $2.99! I thought they promised to beat prices on the same item?”. I looked him right in the eye and said, “I’m selling a 12 pack. I can’t sell a 5-pack, the manufacturer only makes those available to Wal-Mart. So it’s not the same item, they have the best price on a 5-pack.” He thought I was joking at first, but I wasn’t… that’s really how Wal-Mart operates. Sell high visibility at a loss, jerk people around on secondary items. They can force suppliers to give them separate product lines just so they can avoid getting in trouble for lying about the whole Best Price thing.
If you know what to look for, you can see where their prices often are either not particularly low, or they’re selling clearly crappier versions of a product just so they can claim to have better prices. But it’s pretty carefully setup so that most consumers will never realize it. Obviously your local hardware can beat out Wal-Mart on service, but if you think they’re unbeatable on price, I have some glue sticks to sell you.