You're being naive. Even if the crapware didn't sell, getting it into the AppStore costs the developer an annual subscription fee, and thus creates revenue for Apple. And if you've seen the AppStore, you know that 99% of apps are crapware with maybe 5 users.