Not nearly as many people upgrade their computers as have warranty work, I would imagine. And if the upgrade is done by Apple, that extra cost is probably absorbed by the labor cost of getting into the case by Apple's employees.
I could be wrong, but in the large scheme of things I don't think upgrade money is anything more than a tiny line item on Apple's balance sheets.