Also, on a road bike you'll also go at much faster speeds, which I have found to translate to better confidence bombing down trails on my mtb.
What's more hilarious is the reverse cross training of mtb->gravel. The Unbound course is notoriously unmanaged "gravel" (pile of sharp rocks) for certain sections. Most roadies are squeamish to hit rough terrain at speed, and the ability/ confidence to pass _a lot_ of riders helped me move up quickly in the front half of the race. Even the ability to cross wet/rocky water crossings without dismounting added up quickly in both energy spent and time.
The conventional training wisdom (I learned about it from the Anderson Bros in RCTM, but others advocate it too) is to avoid carrying too much weight on your glutes/quads etc. I.e. skip leg day. So that's probably in conflict with also trying to maximize MTB performance.
I would agree that doing a lot of cycling/mtb would probably have a slight negative affect on your climbing ability, i'm not sure about the reverse though - what most people don't realise is that climbing is a very technical sport, and you are totally using your legs most of the time, in fact one of the most obvious identifying behaviours in novices is people hauling themselves up walls using their arms and getting tired really quickly - it's not constant cut loose campusing, those are only the most extreme moves, the crux of a hard climb or a boulder problem.