Every manufacturing technique has a tolerance, and as such when parts are assembled there are gaps which become part of the final product . Since a closed cell foam is impervious to gases or liquids, it is an ideal medium to use to plug these gaps. Closed cell foams can be used to prevent water or air from passing from one area to another and so they are an ideal medium for plugging the gaps.
pf