Devs voluntarily choose to publish apps on the App Store and doing so gets them both another discovery channel and a low-friction sales channel. Stores being robbed by shoplifters don't voluntarily enter that arrangement and they get no benefit from it.