The egg binds all the ingredients in the cottage cheese mixture together. This helps the lasagna stick together better when you're slicing and serving it. It also gives the cheese filling a bit more creamy texture. Without the egg, the filling will be a bit looser and won't hold together quite as well.