Butter adds the right flavor and shortening adds a stiffer texture. In addition, shortening has a higher melter point, meaning that it won't melt on hotter days or when handled in a piping bag.