An afterburner on a coffee roaster helps to roast the beans evenly by providing extra heat. It also helps to remove any smoke and odors from the roasting process, making it a safer and more pleasant experience for everyone involved.