When we heat or boil the soup at high temperatures, the starch contained in the potato reacts with the water molecules. This phenomenon causes an increase in tension to the surface, forming air bubbles surrounded by the starch itself. That's what creates foam.