Thanks for all the replies.
The installer told me the two wires complete a circuit to send the instruction to open or close the gate. It’s just a normal doorbell though - and you don’t need to hold it down until the gate fully opens or closes.
The gate motor itself supports mobile access via...