In terms of "why" I've been lucky that when I needed some little odd or end, there's been about a 65% chance that they have it, and walking three blocks is worth it to check. The prices on those things haven't necessarily been higher than online, in some cases lower.
But I get that's not a viable business... they're there to sell bikes and service and accessories, not be the cycling equivalent of a neighborhood hardware store.