Egg yolks give the pudding a velvety texture and they also help to thicken the pudding.