It’s because he praises God and although he’s aware he isn’t perfect, he still brings God into light and give gratitude for his blessings. Yes he may not “be living right,” but he’s asking for forgiveness in the song and affirming that angels are watching over him.