If the extreme observations on both the ends of a data arranged in ascending order are removed, the median gets affected.
Median depends only on the middle value(s), so removing extreme values does not affect it.