It has a rf remote, which can transmit a code modulated at high frequency, usually 433MHz.
It is decoded in an appropriate receiver fitted in the car and unlocking/locking action is taken.
Since coded commands are transmitted only the proper receiver will respond