This could happen for a couple of reasons. Too much butter was added, the butter is too soft/melted, or you don’t refrigerate the batter before baking the cookies.