It's not like they're taking a loss from educational purchases. It's just price discrimination. You might as well say "if we all started using newspaper coupons we can say goodbye to those discounts."
Likewise, the expected percentage of people using the education discount is part of Apple's calculation. Even if they lose money on the device (which I personally think is unlikely), they'll make it back from subscriptions and their cut of app store purchases.