The acidity in coffee amplifies the flavors of other spices and also acts as a tenderizer.  It makes the meat more tender and applying a rub can help seal in moisture.