The corn syrup, working with the eggs, holds the pie together. Think of it as one of the building blocks of the custard-like filling.