What purpose does the foam pad serve under a laminate floor?

Polyethylene closed cell foam acts as a moisture barrier when taped together according to specifications. The pad provides cushion as well as a thermal barrier.