Apple profit margins are the highest in the industry, close to 30% across many lines. There is no loss on a 9% or so discount for purchases from the Edu store, just a lower profit margin. I don’t believe all products are even discounted but rather it’s a curated list where they can ensure the sales still profitable.Actually, yes it does hurt all others because Apple has to pass their loss on to the customers which makes their products a bit more expensive.
Their large profit margins have also allowed them to take the hit from current tariffs in the US across many products.