The motivation for the App Store is simple: consumers want an easy way to buy apps, and developers want an easy way to sell apps. If you want to take advantage of the payment processing, bandwidth, store interface, and marketing provided by the App Store, you have to adhere to their ToS. I'm sure Yahoo! Store has ToS as well.
However, if you want to roll all that on your own, go right ahead. As pointed out in this article, no one has done more to support you in that endeavor than Apple -- including a lot of support in WebKit and iPhone OS specifically for web apps on these devices.
It's not just a question of web vs. native, either. Even if all iPhone apps were HTML5/CSS/JS, you'd still have to adhere to Apple's ToS in order to sell through the App Store, and you wouldn't have to adhere to them if you sold through your own store.