The priests helped to keep the gods happy and they were servants of the gods because they took care of them. When the priest would go into the temple, they would do different rituals such as lighting a torch, anointing statues, putting perfume or oil on the statues and praying.
hope this helps :)