When people are doing something "in the name of religion", it's possible that they are just trying to justify their actions to achieve certain goals
Also true when people are doing something for any other reason, though. People providing a self-aware and appropriately cynical justification for their actions is the extremely rare exception. The rule is contorted rationalization for selfish nonsense.
This is true even beyond just religion. Stated and actual goals can and not too rarely do differ, as one cannot see into people's minds (for now).