Either your pan was not properly seasoned, or you didn't use enough butter. Cast iron pans must be seasoned properly to create a non-stick surface; otherwise, the pancake batter can stick to the pan. To season it, rub your pan with oil and bake it in the oven at 450 degrees F for 1 hour to season.