Devotion to God is a way of burning up karma, leading to spiritual emancipation.
Altogether, the Bhagavad Gītā introduces three kinds of yoga or paths to enlightenment.
In addition to bhakti yoga, there is also karma yoga and jñāna yoga.
In karma yoga, one pursues spiritual emancipation by acting in accordance with one’s duty (hence performing good acts).