The thing is, though, that any religion, being a paradigmatic worldview, tends to *compete* with materialist-based views of the world, like that of revolutionary politics.
Besides the framework at post #6, illustrating matters of *scale*, I'll proffer this diagram as well that shows a 'cross-section' of any prevailing or 'underdog' social paradigm, consisting of the expanding circular regions of 'art', 'literature', 'cooperation / competition', 'social science', and 'science'.
In other words we could ask 'What does Buddhism say about science', juxtaposed to 'What does *Marxism* say about science', etc.
Humanities - Technology Chart 3.0
You're positing a chicken-or-the-egg inquiry of causation for workers movements, and I'm responding that *class consciousness* is a large mass-subjective determining factor in the potentials for such. Religions are mental and social habits of superstition over world-material processes, which is the same cognitive 'turf' that Marxism addresses -- the religious-vs.-materialist approaches are therefore *competitive* and mutually-exclusive in their explanations for empirical (social) phenomena.