That's a huge part of their overall strategy. They've for years been making deals with schools, giving Mac stuff to them for cheap or even free. Kids grow up not knowing how to use real computers so when they become adults they tend to stick with what they know. They built a cult following where people are willing to pay a premium to be part of the "in crowd" by sporting the Apple logo.
You anti-Apple naysayers keep spouting that old canard, but you cannot account for over 1.1 BILLION Apple products sold WORLD WIDE when Apple gave those computers away to schools in the late 1970s. After Steve Jobs left, the management at Apple discontinued free Apple's for schools. . . and the concepts of word processing or spreadsheet are identical, whether you learn on a Windows or a Mac computer. Your argument simply doesn't hold any water.
It’s good marketing. Good marketing involves doing tasks like donating computers to schools. Apple also isn’t the only one doing it, either, so it’s not an unfair advantage in and of itself.