It doesn’t. The Church doesn’t have the power to send anyone to hell. Only God can do that. More properly, people who go to hell send themselves there because they choose hell over heaven, themselves over God.
Excommunication is the Church’s top judicial sanction and involves excluding a notorious sinner from communion with the faithful. It is intended as a warning to the sinner that he needs to repent. It isn’t a condemnation to hell.