Don't automatically be fooled by big-rigs use of air brakes. There are plenty of pros and cons about the systems.
Air brakes were first used on trains (in part because trains were designed/constructed first.) Air is used because it's many things - but not not exactly because it's best. The biggest thing about it is that it's free - it's everywhere. If it leaks, no problem - you can get more! You don't need to clean it up if it "spills." It has little weight to it, and it's fairly easy to filter out contaminants (like water.)
Many of the same things can still be said about trucks and trailers - you pick up a trailer that's been sitting around a few weeks, and you just fill the air tank back up again, and away you go. But air is picky - it needs to be dry, if you get water in the system, you can get ice, and things will freeze up.
Air has one BIG advantage - the first brakes were manual - no power assist. That was okay for something like a car. For a truck, you need a bit more force. So you have power-assist brakes - which use engine power to assist your stopping power (vacuum, or hydraulic.) That's great - IF the engine is running. If the engine stops, your power assist goes away - and so do your brakes. The tank of pressurized air sitting under the truck cab doesn't care if the engine is running or not. You've got a fairly long time to get the truck stopped, using the stored compressed air.
What still matters in the end is the ability of the brake system to dissipate the heat generated from friction to stop the vehicle - whatever generates the pressure is secondary.
I mean, we use both pressure systems all the time - air-powered jackhammers and tools, but hydraulic excavators and tractors.