infloor heating thermostat from sub panel question
GFCI does not require a ground connection to function. It checks for an imbalance between the HOT and NEUTRAL lead current, assuming that any difference is escaping to ground, possibly through a human body.

This is why it is legal to use a GFCI outlet without a ground connected, assuming you are installing it on an old non-grounded circuit.