Sometimes you can trace back cultural values, norms, and mores to religion, but it’s not the only influence. In society there are all sorts of groups and subgroups. Religion was a way to group people together, and in history religion probably separated people more than now. When groups are more isolated they develop their own culture.
Religion, hundreds and thousands of years ago, was like a government and was used to control people and society. In some ways it still does. Religion sometimes dictates daily tasks. When it’s ok to eat certain things, when to pray, many rituals. Of course, these things affect the culture of a group. Over generations, even if the group is less religious now, they might still practice some of the rituals, because they were handed down, and may not realize where they originated. This can be true of not just rituals, but how they view the world, and how they interact with the world.