Closed-cell foam is designed to prevent this problem, but at the cost of being stiffer and heavier.
You made a good point, anyway. Foam could absorb water, and air, and get dirty, and smell bad.
You made a good point, anyway. Foam could absorb water, and air, and get dirty, and smell bad.