Though both kinds of cookies have similar ingredients, the ratios of those ingredients differ. Butter cookies have a higher ratio of flour and sugar to help them maintain the details of their shape and include egg and a rising agent, like baking powder. Shortbread cookies have a higher ratio of butter and don't include egg or a rising agent.