I'm a student and not a professional programmer so here are my thoughts:
- Swift and iOS development tie you up to one vendor, Apple's hardware is quite expensive - traditional uni will stay away from it as it means extra costs for them and courses will be less popular
- Java is a safe choice, low barriers to entry and large job market, easy to find tutors, courses cheap to create and will be popular, it just screams large profit margins for the university
- Why just these two? Why not consider Smalltalk or Dart?