I believe it was built for religious purposes because thats what most of the building where built for. Worship and sacrafices were important to people and alot of the buildings that I researched for this topic all had the same type of set up and used most of the same type of stone.