Short form of medium, and of medical. A named abbreviation rather than a concept.
Latin medius (middle) and, separately, medicus (a physician, from mederi, to heal); the same three letters now stand in for either word depending on which is meant.
Three letters doing double duty — which word it shortens is never named, only understood from whatever stands beside it.