Yup, tannic acid. It's what makes the streams of the north flow tan, it's also what makes your jeans stain.
Sometimes I've noticed it doesn't stain, other times does. I had some reserve brain space once and some time to reflect on the smaller things in life so I checked-out this phenomenon. It seems when we sweat there might be some chemical interaction that makes the stains permanent, colder days it's not that big a problem. Also, wash water for the laundry - here we're hard as nails and my jeans don't come too clean, on the east coast where I work occassionally, I can get as grubby as a feral pig but my clothes come-out fresh enough to attend a black-tie dinner (if they let-in a tree climber with bluejeans on).
I love oak juice. The nectar of the gods. During a drought, there's more black staining from the vascular beer, less so in more moist times. What really stinks though is the juice that's common with core-rot (heart rot). Nothing quiet like chunking-down from 30 feet up and hitting a reservior of 10 gallons of gooey black sewage sludge that spills-out into your face. I know the taxonomists have a fit when you call something something that it's not, but my true definition of Butt Rot is the aroma one comes down the tree with after sawing into just such a septic pool of crud. Tree work....gotta love it.