Thoreau’s short essay was published in 1849 and understood to refer to opposing slavery. It was only after his death that it started to be reprinted and quoted for just about every cause you could think of.
He was quite influential in the transcendental community and was not just an isolated, solitary figure.