why theres so much sodium in processed foods

This is because the many types of readily available food is processed. A lot of processed foods contain sodium for a variety of reasons.

Processed foods and similar products have sodium for two primary purposes: preservation and taste. Thus, if the food is more processed, it is likely that the sodium content is higher.