Adding egg helps hold the cheese together so it doesn't ooze out of the lasagna. It also helps hold the lasagna together as it cools.