Usually a religion starts as a source of knowledge and divinity and stuff. Then some corrupt people take slowly over it, as always, and the religion becomes a way to oppress and rob people of their possessions.

Best example of that is the "holy inquisition" of the middle ages...