When I cover the unit on ethics in my courses, I sometimes ask my students to imagine themselves as an owner of 20 convenience stores with $20 million in annual revenues.
I then ask them "What prevents your employees and customers from just taking what they like from the store shelves without paying?"
Among the three main monotheistic religions, "You should not steal" appears to be a universal value instilled in followers. Capitalism seems to benefit from religious teachings. Therefore, to what degree is capitalism dependent on religious teachings?