Apple has an average profit margin of nearly 30%. Even with the 10% refurbish discount, and a 10% veteran/student/educator/etc discount, and the cost of refurbishing, they still are likely in the green.