Lemurs self-medicate by rubbing toxic millipedes over their bottoms

Red-fronted lemurs sometimes pick up a millipede, give it a chew to make it secrete toxins, then rub it on the skin around their anus – but why?