In this casserole recipe, eggs are an important addition because they help to act as a binder for the mashed sweet potato mixture. Without them, the base would be much more runny and not easy to eat or serve. Most sweet potato recipes include eggs.