What happened was that the IOC banned everyone against whom there was some evidence because of the systematic nature of the Russian doping program, and the CAS analyzed those cases independently deeming the evidence insufficient in 28 cases. It's not a matter of right and wrong, but two different approaches which both can be justified. What is shady is the Russian state-sponsored doping program in itself.