You have it all wrong God doubter! The singer is in prison reminiscing about his lover. The song or melody has freedom hence unchained whereas the singer is so to speak in chains in jail. Now you can thank God that you know the truth for it will set you free.