Eggs are used in the ricotta filling of stuffed shells in order to bind the ingredients together.  As the shells bake, the egg sets, gluing the ingredients together, while still maintaining the creamy texture of the filling.