They hold rim brake pads against the rim. When and whether this is useful has to do with both individual style and the brakes at hand, which is also to say the predominant ones in whatever locale or historical era you're in.
Some mechanics view this tool or ones like it as one of the core fundamental bike service tools. Usually that person's default style of setting up a rim brake will go something like this:
- Set up the pad position before the cables are run or anchored.
- Clamp the pads against the rim with a third hand.
- Set the barrel adjusters a distance away commesurate with the target amount of lever travel when finished, minus some accomodation for the cable "stretching."
- Run the cable and anchor it pulling it tight with pliers to take out slack.
- Release the third hand tool.
- Dial the barrel adjuster in all the way.
You can also use a spacer like a credit card or a coin to do the barrel adjuster part. It's two ways of doing the same thing. My bias is the barrel adjuster because it gives more granular control.
It's a fine way, and note that the third hand tool has sophisticated, expensive versions (VAR), simple commercial ones as pictured, and then all the way down to improvised ones made of scrap. That is a big part of its popularity in many times and places. Fourth hand tools can do a lot of the same things but are a little fancier and more complex by nature.
The late 70s bike boom saw a very large number of bikes produced with centerpull brakes that used fixed-length straddle cables and relatively strong return springs. My understanding is third hand tools were popular then because they're useful in keeping the setup process straightforward, where it can be clumsy otherwise. For example, one can clamp the pads, set the barrel adjuster, pull the cable tight as it passes through the yoke with a fourth hand or pliers, and then anchor the cable.
Another application for them is to help get more precise control over the angles during cantilever brake setup. One of the fundamental areas of concern with canti geometry is the angle created by the point of pad contact with the rim and the cable anchor on the arm as one line and the arm anchor and the straddle cable's point of contact with the yoke as the other. To establish this angle how you want it, you either need a way of holding the pad against the rim or simply visualizing or otherwise "knowing" it. Experienced mechanics tend to get good at the latter approach, but third hand tools can help do it the former way, which is also fine. Using the tool this way you would establish your brake pad position without any cables attached, then apply the third hand, then anchor the yoke on the main brake cable at the point that gets the geometry you want, then dial out the barrel adjuster as above, and finally pull the straddle cable tight with a fourth hand or pliers as you anchor it to the brake arm, then dial in the barrel adjuster. In particular, 90s Shimano and similar low profile cantis can be set up with good results this way by using a 90 degree angle and setting the post extension such that the flat part of the arm is parallel with the rim sidewall. The third hand isn't explicitly needed but it can help give more control for someone that hasn't learned all the shortcuts yet.