Why did the government officials try and make their gods happy?

Government officials tried to make their gods happy because they believed that the gods played a significant role in the prosperity and protection of their society. By keeping the gods happy through rituals, sacrifices, and offerings, they believed that they would receive favorable treatment and blessings from the gods in return. This was seen as essential for the well-being and success of the community as a whole. Additionally, government officials may have used their supposed communication with the gods as a way to legitimize their authority and control over the population.