I wouldn't say it costs them nothing. If competitors are forced to raise their wages near Costco's, Costco either needs to up the ante or lose some of the luster they've created in treating their employees so well compared to the average retailer.
I'm not saying they don't have good business reasons for this, they do, but it isn't all pure business upside for them.