You buy an app for $10, Apple gets $3, the developer gets $7.
You refund the app (through the Apple App Store), you get your 10$ back, but that whole 10$ comes from the developer, unlike the 7/3 split when you first purchased it.
So in the end, the developer has lost money due to the refund.