In both cases sanctions were introduced by international bodies under strong US influence (we’re talking the EU here, of course).
Either those who come up with ideas of ‘punishing Russia’ – be it in sport or in commerce & trade – belong to a rare and extreme sect that believes that the ‘guilty-as-charged’ principle should always be applied.
Or they are but a bunch of cynical bastards who somehow think that they shall always come out on top – refusing to recognize that the game has changed.
Now it’s become a game of the ‘zero-sum’ variety, where the losses of the other side are always going to be balanced eventually by the losses of perpetrators. Sanctions and ‘punishments’ simply don’t work anymore.
The economic sanctions imposed on Russia by the EU were adopted in response to the illegal annexation of Crimea and the deliberate destabilisation of Ukraine http://www.consilium.europa.eu/en/policies/sanctions/ukraine-crisis/. The International Olympic Committee (IOC) banned Russia from competing the Games because of state-sponsored doping leading up to and including the 2014 Sochi Winter Games https://edition.cnn.com/2018/02/24/sport/olympics-russia-ceremony-intl/index.html. There is no connection between the two issues, apart from Russia breaking the rules of the international community. https://euvsdisinfo.eu/breaking-the-rules-crimea-disinformation-doping/.