It's likely because your butter was not at room temperature, and still too cold. The butter MUST be soft and at room temperature in order to make a smooth, lump free frosting.