Dirt, build up and Sebum destroy foam and bubbles. That is why the second application of shampoo/soap is so much more foamy, there is little dirt or oils left on the hair. Copious amounts of foam are not necessary to clean your hair, ideally just enough to move the product through your hair is idea, more than that and you are wasting it.