Basically this prevents the apple market from getting flooded with cheap crap that doesn’t work (See PC Market). Same principle behind the app store. This is a brilliant business move, keeps the brand value high, makes them more money, and ensures a quality experience with all of their products.
I bought one single accessory for my iphone, a $599 Bowers and Wilkins Zeppelin, and it was worth EVERY PENNY.