The butter was most likely too soft or there was too little flour. The butter needs to be room temperature (65°F) and the flour is measured using the "spoon and sweep method," which equals 128g of flour per cup. Also, a reliable, well-tested recipe is crucial for perfectly thick cookies (P.S. this is one!).