Religion is not exclusive to agrarian societies. Indeed, much of proto-indo-European religion (ie the OG “sky father” [1]) was developed on the steppes in a pastoral lifestyle.
[1]: https://en.wikipedia.org/wiki/*Dy%C4%93us