I get that some people are just using religion to justify bad stuff, but a lot are doing bad stuff because their holy book tells them to. Again, someone’s religion is often a worldview that informs everything they do.
You don’t just get to say “well it’s not because of the religion” when a lot of holy books explicitly support the immoral acts they legislate.