A $40 HDMI cable sounds expensive.
But when you're buying a $400 bluray player, another $40 for the cable doesn't sound so expensive, because you're mentally comparing the price to $400.
Anchoring is a well-known concept in pricing. Since retail stores are almost always selling HDMI cables as add-ons, they can take advantage of a much greater willingness to pay by customers who are anchored by the high-price blu ray player they're buying. The online stores that sell cheap HDMI cables (monoprice FTW!) sell ONLY cables and can't anchor.
PS I always prefer component cables to HDMI cables. You get the same quality without the copy protection bullshit. There are too many reasons the HDCP DRM crap sucks, for example, it is impossible for AV receivers to display on-screen menus or even on-screen volume sliders so you have to adjust your volume without seeing what you're doing.