This happens when you use a pan without a nonstick coating or when you don't rub enough oil or butter into the pan.