Whatever benefits religion has achieved are simply accidental.
I believe that the 'rule of law', which in many countries is based on Judeo-Christian values is hardly accidental.
Those originating the laws (whether Moses & Christ, or the priests) provided a sound footing for future laws.