Why did many rulers want their people to be of the same religion as the rulers?

Because many rulers wanted people to consider tehm god-kinhs so they wanted to follow that. Also to itimidate fear into them. Like if u don't do this u go to hell. So rulers wanted them to follow them in there faith.