This is usually either because a) your baking powder has gone bad (check the date) or b) the butter and sugar were creamed together a bit too long. Over-whipping the butter will create air pockets, which then make the cookies puff up when baking.