It is because your cast iron pan is not seasoned enough. Your pan might have lost seasoning due to scrubbing, acids cooking in it, or some other factors. In that case, you just need to reseason your pan.