First and foremost, religion was created for 3 Primary purposes and then served a secondary purpose after its original inception. The very first organized religions were invented by what the Sumerians called the "Annunaki" about 6000 years ago, and various versions of it were given to the Sumerians, the Mayans, the Aztecs, and the Egyptians. You can verify this information yourself by reading Zechariah Sitchens translations of the Sumerian Clay Tablets. Michael Tellinger wrote a masterpiece on this history that he called "Slave Species of god" which helps put everything into proper perspective.
Most people think that we used Barter and Trade for thousands of years and then, only later on, used Gold as money for trade. This simply isn’t true. In fact, Money was invented long before Barter and Trade, and barter and trade probably never would have been invented if money had never been invented. In other words, the entire idea of Trade, is itself, an invention of mankind that doesn’t need to exist at all! But who invented it, and how and why, is the mystery of how Slavery came to be and continues to exist.