Eggs help to bind the ingredients to keep the meatballs together. They don't provide much moisture (that's what the ricotta is for), but they are a great binder.