The function of the compensating curve is

to help provide a balanced occlusion in complete dentures when the mandible is protruded.

to aid in establishing an incisal guide plane

the same as the function of the curve of Spee.