An electronic relay is basically an electronically operated switch, they can either be mechanical or solid state (moving parts vs no moving parts)
The relay prevents the thermostat from failing in the "on" position So instead of frying your snake the heat tape turns off.
In the case of a thermostat failure the relay is triggered to disconnect the power from the device.