It could one of two reasons: First, butter was more melted than needed. Remember to melt the butter till it looks milky, not clear. Microwave in increments of 10 seconds if your microwave is strong. Second, the batter was over-mixed, which incorporates too much air in the batter. As a result, cookies tends to puff up more, than flatten after baking.