This is a ginan garbi, a subgenre within ginans (devotional hymns) where the lyrics are set to dance. In modern times they are recited in more religious settings by Ismailis. According to folklore, Pir Shams used these garbis in the 14th Century for proselytizing purpose where he would participate in dancing with villagers during their festive occassions and use these lyrics to communicate his message.