The vast majority of people can meet all their nutritional needs with peas & other vegan foods. Plus, the extra calories & cholesterol in eggs is actually detrimental to many people's health. Peas also have beneficial nutrients like fibre which is absent in eggs.
Eggs are used in the same way (whipped egg whites) but the amount of egg white used in a whole cake or bread or whatever is so small it’s not a meaningful contribution to the nutrition.