I don't know how much that is true. It can just as well leak onto/into the wood or finish if it is placed isolated. I mean if you have a passive bass already with no compartment, the only option if you decide to go active on that particular bass, is to put the batteries inside were the rest of the electronics are anyway, under an already existing cover. And having to unscrew it whenever changing batteries. And on top of this, there are a couple of manufacturers that hides the batteries in there anyway (Spector et al).
Also, you can isolate so the plastic casing surrounding the battery will prevent it to leak out. Coming to think of it I think it's better that the "leak" happens there inside the electronics cavity, where it's more possible that shielding and painting prevents the leak to creep into the wood. Electronics can always be sprayed. However, electronics can get short-circuited.
Leaking has occured on my basses too. But since I've started to use 2 9v lithium batteries, and wired them to prevent changing them that often (9v pararell, not 18v) , they make the 7th (!) year in a row now, without them leaking or losing voltage, they're still at 8.85 V when I changed strings and did a regular yearly check a month ago. Enough to drive two EMGs. I don't use the 18v wiring, that is possible too. I have them under the regular cover, so I have to unscrew 6 screw (Not that Dingwall bass though, they have separate battery dept). And that was the reason I wired the two that way. So I don't have to change that often. PLUS going for expensive lithium batteries. Playing this bass daily, forgetting ever so often the cable plugged in, but nothing but to my own chagrin. Maybe, if such a cover was present as 3rd party, I would've stuck with regular 9v batteries, ONE only, because it's easier to change batteries.
I don't think it is that serious to having to "de-gunk" the residue that leaking batteries leaves. It's a bit icky, though. If one change them often they don't leak. I am just thinking that from a manufacturers point it would be much cheaper than having the CNC router make tunnels for the battery wire, and another cavity. And they can outsource that cover manufacturing.