The electronic parking brake is a motor that turns a screw that directly compresses the piston into the brake pads. Most cars do this to the existing rear brake pads and it doesn’t require any hydraulic pressure to work.

Some have a separate small caliper with the motor and no hydraulic connection at all.

The motors self adjust by measuring the load from the motor as it clamps down. Then rewinding a set amount when the brake is released. This can make it a pain to replace rear pads, since the screw will be extended too much to fit the new thicker pads/rotor. (You can rewind the screw with a 12v drill battery though and save a lot of time).
If all your rear pads were missing then you’d be screwed though!