Eggs are added to cheesecake for a smooth and creamy texture and to help it set properly.