The theory is that if the punishment was so severe, then fellow supporters would police their own, for fear of sanction.
It would only take one or two such punishments to curb any further racist acts by rational fans. The problem is these acts are often carried out by drunk or drugged up goons...